On 28-Jan-98, Mart Oruaas wrote to Roger Scudder about char to string.
MO> little test program. anyway, it seems to be safer to add \0
MO> "manually" when using strncpy()
Only if the string to copy has n length and you pass m <= n as a copy
length.
Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org
+4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9*
.!. 'cause I, still believe, in anarchy! * The Exploited
--- Terminate 5.00/Pro
---------------
* Origin: The King of The Ring (4:900/748.3)
|