lune/tests/ffi/external_struct/lib.c
2024-10-14 09:37:21 +00:00

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;
}