scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

imaxdiv.c (129B)


      1 #include <inttypes.h>
      2 
      3 #undef imaxdiv
      4 
      5 imaxdiv_t
      6 imaxdiv(intmax_t num, intmax_t den)
      7 {
      8 	return (imaxdiv_t) {num/den, num%den};
      9 }