Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kazinator
on July 15, 2024
|
parent
|
context
|
favorite
| on:
I'm not a fan of strlcpy(3)
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
on July 15, 2024
[–]
Null 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: