C programming hint

Steven M. Kramer smk at axiom.UUCP
Sat Jul 13 03:29:38 AEST 1985


> From: kps at 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 at mitre-bedford					(MIL)



More information about the Comp.lang.c mailing list