15 ms·
If someone ever has to use your stuff over FFI from a high level language, they will curse you for not just using C strings.
by kazinator 2y ago
If someone ever has to use your stuff over FFI from a high level language, they will curse you for not just using C strings.
- gpderetta 2y agoNull terminated C strings are still terrible for FFI. Pointer and length is a better solution and it is trivially interoperable with code that uses, say, string_view.