Its a userland thing. The kernel has its own string functions.
As to why the above is faster in userland, that seems really odd. I would
assume the libc string copy to be something like:
char *strcpy(char *a,char*b)
{
char c = b;
while(*a++ = *b++);
return c;
}
Which I can't see how it could be slower than what you are using...
-Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu