lune/tests/ffi/external-struct/lib.c

14 lines
216 B
C

typedef struct {
int a;
int* b;
} ArgStruct;
typedef struct {
int sum;
int mul;
} ResultStruct;
ResultStruct AB(ArgStruct t) {
ResultStruct result = { t.a+*t.b, t.a**t.b };
return result;
}