source:
bootcd/isolinux/syslinux-6.03/com32/lib/strcpy.c
Last change on this file was e16e8f2, checked in by , 3 years ago | |
---|---|
|
|
File size: 222 bytes |
Line | |
---|---|
1 | /* |
2 | * strcpy.c |
3 | * |
4 | * strcpy() |
5 | */ |
6 | |
7 | #include <string.h> |
8 | |
9 | char *strcpy(char *dst, const char *src) |
10 | { |
11 | char *q = dst; |
12 | const char *p = src; |
13 | char ch; |
14 | |
15 | do { |
16 | *q++ = ch = *p++; |
17 | } while (ch); |
18 | |
19 | return dst; |
20 | } |
Note: See TracBrowser
for help on using the repository browser.