Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: strcpy Message-ID: <3293@haddock.ISC.COM> Date: 1 Apr 88 20:48:33 GMT References: <793@cresswell.quintus.UUCP> <545@anuck.UUCP> <4190@ihlpf.ATT.COM> <836@cresswell.quintus.UUCP> <17942@watmath.waterloo.edu> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 12 In article <17942@watmath.waterloo.edu> rbutterworth@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@haddock.isc.com), The Walking Lint