PageRenderTime 46ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Examples/guile/multivalue/example.c

#
C | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | 37f214cca91bb5467649394850500c5d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. void divide_l(int a, int b, int *quotient_p, int *remainder_p)
  2. {
  3. *quotient_p = a/b;
  4. *remainder_p = a%b;
  5. }
  6. void divide_v(int a, int b, int *quotient_p, int *remainder_p)
  7. {
  8. *quotient_p = a/b;
  9. *remainder_p = a%b;
  10. }
  11. void divide_mv(int a, int b, int *quotient_p, int *remainder_p)
  12. {
  13. *quotient_p = a/b;
  14. *remainder_p = a%b;
  15. }