lune/tests/ffi/external_struct/lib.c
2024-10-24 04:52:11 +00:00

14 lines
222 B
C
Vendored

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