/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
- void divide_l(int a, int b, int *quotient_p, int *remainder_p)
- {
- *quotient_p = a/b;
- *remainder_p = a%b;
- }
- void divide_v(int a, int b, int *quotient_p, int *remainder_p)
- {
- *quotient_p = a/b;
- *remainder_p = a%b;
- }
- void divide_mv(int a, int b, int *quotient_p, int *remainder_p)
- {
- *quotient_p = a/b;
- *remainder_p = a%b;
- }