/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
1void 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
7void divide_v(int a, int b, int *quotient_p, int *remainder_p)
8{
9 *quotient_p = a/b;
10 *remainder_p = a%b;
11}
12
13void divide_mv(int a, int b, int *quotient_p, int *remainder_p)
14{
15 *quotient_p = a/b;
16 *remainder_p = a%b;
17}
18