9static long return_sl(
long l1,
long l2)
22 args[0] = &ffi_type_slong;
23 args[1] = &ffi_type_slong;
28 &ffi_type_slong, args) == FFI_OK);
33 ffi_call(&cif, FFI_FN(return_sl), &res, values);
34 printf(
"res: %ld, %ld\n", (
long)res, l1 - l2);
void ffi_call(ffi_cif *cif, void(*fn)(void), void *rvalue, void **avalue)
ffi_status ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs, ffi_type *rtype, ffi_type **atypes)