On Apr 24, 17:10, Bob Withers wrote:
There's a big difference between a NUL string
and a NULL pointer.
Yes, but that's not what I wrote. A null string is an empty string (no
characters). A NUL string would be a string with a single ASCII NUL
character in it -- and rather hard to manipulate in C, since NULs mark the
ends. Nevertheless, they do exist, though that wasn't what I was talking
about.
And what I was talking about was NULL pointers, which strcpy() doesn't
like.
-spc (and it's a NULL POINTER that strtok() will return, not a NULL
string.)