initial check-in, version 0.5.0
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <string.h>
|
||||
|
||||
char *__stpcpy(char *, const char *);
|
||||
|
||||
char *strcpy(char *dest, const char *src)
|
||||
{
|
||||
#if 1
|
||||
__stpcpy(dest, src);
|
||||
return dest;
|
||||
#else
|
||||
const unsigned char *s = src;
|
||||
unsigned char *d = dest;
|
||||
while ((*d++ = *s++));
|
||||
return dest;
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user