Messages in this thread | | | Date | Fri, 24 Apr 1998 15:55:59 +0800 (BJT) | From | Samuel Leo <> | Subject | Re: faster strcpy() |
| |
On Fri, 24 Apr 1998 umforema@cc.UManitoba.CA wrote:
> I'm not sure if this is a libc thing or a kernel thing, but I noticed > that strcpy is in the kernel include files, so here goes... > I changed the definition of strcpy in /usr/include/string.h to > > #define strcpy(a,b) (char *)memcpy(a,b,strlen(b)) must be strlen(b) + 1 > > It slightly more than doubles the speed of strcpy on my pentium machine. > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |