strncat() will copy at most the specified number of characters and append the null character on top of that. strlen() doesn't count the final null character.master
parent
e8185caf31
commit
92423a466e
Loading…
Reference in new issue