Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fanf2
on July 31, 2021
|
parent
|
context
|
favorite
| on:
strcpy: A niche function you don't need
What makes it incompatible with UTF-8?
colejohnson66
on July 31, 2021
[–]
Normally, UTF-8 works with C strings no problem, but it's possible that a multi-byte UTF-8 encoded codepoint is only halfway copied when it reaches the capacity and throws the NULL at the end.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: