Scoping question in C
Kevin Cozens
kcozens-qazKcTl6WRFWk0Htik3J/w at public.gmane.org
Mon Jun 13 19:29:18 UTC 2005
James Zhou wrote:
>Plus, strncpy() will not write '\0' at the end.
>
>
It won't guarantee a NUL at the end of the output from the copying by
putting one in your output buffer. The copied string may or may not be
NUL terminated depending on the length of the original string to be
copied vs. the number of bytes you want to copy.
--
Cheers!
Kevin. (http://www.interlog.com/~kcozens/)
Owner of Elecraft K2 #2172 |"What are we going to do today, Borg?"
E-mail:kcozens at interlog dot com|"Same thing we always do, Pinkutus:
Packet:ve3syb at ve3yra.#con.on.ca.na| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list