0 votes
90 views
asked in C++ by
Hi all

 In c++ how to use Safely using strncpy?

1 Answer

0 votes
answered by

when you use strncpy() always remember to add '\0' at the end of destination string. strncpy does not automatically add the terminator if the source string is longer than the destination!

Categories

...