Comment by formerly_proven
1 day ago
> strncpy doesn’t handle overlapping buffers (undefined behavior).
It would make little sense for strncpy to handle this case, since, as I pointed out above, it converts between different kinds of strings.
1 day ago
> strncpy doesn’t handle overlapping buffers (undefined behavior).
It would make little sense for strncpy to handle this case, since, as I pointed out above, it converts between different kinds of strings.
No comments yet
Contribute on Hacker News ↗