Iso_c_binding: interface to a C function returning a string

Not sure if this helps, but I believe the C standard function returns a size_t, not an int, so if you’re on a 64-bit platform you may receive only the first 32 bits and they may all be zeroes…?

1 Like