strcpy

John Young jgy at hropus.UUCP
Sat Mar 26 11:58:19 AEST 1988


In response to Barry Margolin, Dave sill writes:
> I don't think that that's guaranteed, or even implied by that
> sentence.  I would expect the contents of `dest' to be:
> 
> 	'a' 'b' 'c' '\0'  ?   ?   ?   ?   ?   ?
		..........
> There is nothing said about the order in which the copying takes
> place, or the contents of the destination string past the null
> character.
> The opinions expressed above are mine.

I'm glad these are just yours!
Your mistaken.
If the "contents of the destination string past the null character"
are not guaranteed why would anyone use strcpy()? 



More information about the Comp.lang.c mailing list