2 ms·
> 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, i
by formerly_proven 10mo 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.