strcpy

Karl Heuer karl at haddock.ISC.COM
Sat Apr 2 06:48:33 AEST 1988


In article <17942 at watmath.waterloo.edu> rbutterworth at watmath.waterloo.edu (Ray Butterworth) writes:
>You could
>#define strmove(out,in) ((char*)memmove((void*)out, (void*)in, 1+strlen(in)))
>if it weren't for the fact that the identifier "strmove" is already
>reserved by the Standard.

You could do it anyway -- provided "you" means the vendor, rather than the
user.  You'd still be a conforming implementation; the name "strmove" is part
of the implementation's available namespace.

I object on different grounds, though: "in" is evaluated twice.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list