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!godot!harvard!seismo!brl-tgr!tgr!BLARSON%ECLD@ECLA From: BLARSON%ECLD@ECLA (Bob Larson) Newsgroups: net.lang.c Subject: Re: Copy strings with \"strcpy\", not an idiom Message-ID: <9411@brl-tgr.ARPA> Date: Thu, 21-Mar-85 13:51:23 EST Article-I.D.: brl-tgr.9411 Posted: Thu Mar 21 13:51:23 1985 Date-Received: Sat, 23-Mar-85 01:38:07 EST Sender: news@brl-tgr.ARPA Lines: 12 I don't seem to have problems with strncpy not leaving a terminating '\0'. Maybe this is because I always make sure the n is at least one less than the length of the destination, and that the last character of the array is initialized to '\0'. I thought that this technique was obvious. Bob Larson ... ucbvax!blarson@usc-ecl "Using an outdated vocabulary can cause unpredictable results." -- Prime Information -------