Top
/
C++
/
Strings
/
Null-terminated
/
Answer-nullterm-2
Answer to Question nullterm-2
A null-terminated string of length n needs n+1 bytes, since it needs a place to store the null character. CopyString does not allocate a large enough array.