(2006-08-06) rescue-bootcd
This commit is contained in:
20
extra/syslinux-3.09/com32/lib/strcpy.c
Normal file
20
extra/syslinux-3.09/com32/lib/strcpy.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* strcpy.c
|
||||
*
|
||||
* strcpy()
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
char *strcpy(char *dst, const char *src)
|
||||
{
|
||||
char *q = dst;
|
||||
const char *p = src;
|
||||
char ch;
|
||||
|
||||
do {
|
||||
*q++ = ch = *p++;
|
||||
} while ( ch );
|
||||
|
||||
return dst;
|
||||
}
|
||||
Reference in New Issue
Block a user