Path: utzoo!utgpu!water!watmath!rbutterworth From: rbutterworth@watmath.waterloo.edu (Ray Butterworth) Newsgroups: comp.lang.c Subject: Re: strcpy Message-ID: <17942@watmath.waterloo.edu> Date: 31 Mar 88 15:46:30 GMT References: <793@cresswell.quintus.UUCP> <545@anuck.UUCP> <4190@ihlpf.ATT.COM> <836@cresswell.quintus.UUCP> Organization: U of Waterloo, Ontario Lines: 13 In article <836@cresswell.quintus.UUCP>, ok@quintus.UUCP (Richard A. O'Keefe) writes: > If the memcpy() question was solved by adding a memmove(), is there > also a strmove() in the current dpANS draft? 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. (If I got the return value of memmove() wrong, please don't bother posting to tell me. I don't have a copy of the Standard with me.)