Re:strcpy: A niche function you don't need
by fanf2 on Friday July 30, 2021 @08:50PM
(#28014173)
What makes it incompatible with UTF-8?
[ Parent
| on HN ]
Re:strcpy: A niche function you don't need
by colejohnson66 on Friday July 30, 2021 @09:54PM
(#28014516)
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.