strcpy

Richard A. O'Keefe ok at quintus.UUCP
Fri Mar 25 13:43:53 AEST 1988


In article <18488 at think.UUCP>, barmar at think.COM (Barry Margolin) writes:
> Will you guys stop playing word games, and think about what that
> sentence was really intended to mean?  I think the point of the

We don't KNOW "what that sentence was really intended to mean".
All we can tell is what it SAYS.
Anyone who needs reminding in the manual page for strcpy()
"that string functions don't know about declared array dimensions"
is going to have a hard time with almost anything in C.

I've just checked in Harbison & Steele, and while they do not feel
constrained to point out that string functions don't know about
declared array dimensions, they *do* explicitly say that strcat()
and strcpy() may not work with overlapping strings.  Presumably
this means that they knew of C implementations that didn't do the
copies left to right.  Anyone have any idea what those implementations
might be?



More information about the Comp.lang.c mailing list