C programming hint

VLD/VMB gwyn at BRL.ARPA
Sun Jul 14 16:15:29 AEST 1985


Warning!  The behavior of strncpy() on overlapping strings is
undefined.  Many implementations of strncpy() use a "block move"
machine instruction, which may or may not work the way you
expect when the source and destination overlap.



More information about the Comp.lang.c mailing list