lkml.org 
[lkml]   [1998]   [Apr]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 24 Apr 1998 15:55:59 +0800 (BJT)
FromSamuel Leo <>
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2008