10static size_t ABI_ATTR my_strlen(
char *s)
23 args[0] = &ffi_type_pointer;
24 values[0] = (
void*) &s;
28 &ffi_type_sint, args) == FFI_OK);
38 s =
"1234567890123456789012345";
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)