Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Tuna-Fish
on July 15, 2024
|
parent
|
context
|
favorite
| on:
I'm not a fan of strlcpy(3)
In Rust, you would do both of those with a &str, which works fine. Just works exactly as in C, with no calls to memcopy or allocator or anything. And you would also be able to do all the other things that in C use null termination, too.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: