Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site axiom.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!linus!axiom!smk From: smk@axiom.UUCP (Steven M. Kramer) Newsgroups: net.lang.c Subject: Re: C programming hint Message-ID: <61@axiom.UUCP> Date: Fri, 12-Jul-85 13:29:38 EDT Article-I.D.: axiom.61 Posted: Fri Jul 12 13:29:38 1985 Date-Received: Sun, 14-Jul-85 08:27:33 EDT References: <899@teddy.UUCP> Organization: Axiom Technology, Newton MA Lines: 14 Keywords: strncpy > From: kps@teddy.UUCP > Subject: C programming hint > > The trick is to use strncpy in an almost recursive way. The problem in using strncpy for a ripple effect is that you are inferring a feature of the implementation of strncpy. For those systems that implement it using a machine instruction or otherwise semantically differently than you are used to, this will not work. It certainly is not portable. -- --steve kramer {allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!axiom!smk (UUCP) linus!axiom!smk@mitre-bedford (MIL)