2 ms·
strncpy() acts as you describe, but strncat() will terminate; from its man page[1], > the resulting string in dest is always null-terminated. [1]: https://lin
by deathanatos 7y ago
strncpy() acts as you describe, but strncat() will terminate; from its man page[1],
> the resulting string in dest is always null-terminated.
[1]: https://linux.die.net/man/3/strncat https://linux.die.net/man/3/strncat