Messages in this thread |  | | | Date | Fri, 24 Apr 1998 19:37:40 +1000 | | From | Dancer <> | | Subject | Re: faster strcpy() | |
while(*a++=*b++); perhaps?
D
Meelis Roos wrote:
> > > #define strcpy(a,b) (char *)memcpy(a,b,strlen(b))> > As I understand, it first finds the length of b and then in second pass
> it copies the data. It would be even faster if we could do it with 1 pass
> (but fast like memcpy).> > Meelis Roos (mroos@tartu.cyber.ee)> > -> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@
------END GEEK CODE BLOCK------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
|  |