I feel such a fool.
Up till a few years ago I used to be a C Instructor.
Now my C is very rusty.
If I strcpy part of a string into an empty buffer,
how do I place a '\0' at the end of the copied data?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.