Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!gwyn@BRL.ARPA From: gwyn@BRL.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: C programming hint Message-ID: <11559@brl-tgr.ARPA> Date: Sun, 14-Jul-85 02:15:29 EDT Article-I.D.: brl-tgr.11559 Posted: Sun Jul 14 02:15:29 1985 Date-Received: Wed, 17-Jul-85 04:28:45 EDT Sender: news@brl-tgr.ARPA Lines: 4 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.