Rev 1408 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1627 | serge | 1 | /* strcpy() Author: Kees J. Bot */ |
2 | /* 1 Jan 1994 */ |
||
1408 | serge | 3 | |
1627 | serge | 4 | /* char *strcpy(char *s1, const char *s2) */ |
5 | /* Copy string s2 to s1. */ |
||
6 | /* */ |
||
7 | #include "asm.h" |
||
1408 | serge | 8 | |
1627 | serge | 9 | ENTRY(strcpy) |
10 | push %ebp |
||
11 | movl %esp, %ebp |
||
12 | push %esi |
||
13 | push %edi |
||
14 | movl $-1, %ecx /* Unlimited length */ |
||
15 | call _C_LABEL(_strncpy) /* Common code */ |
||
16 | movl 8(%ebp), %eax /* Return s1 */ |
||
17 | pop %edi |
||
18 | pop %esi |
||
19 | pop %ebp |
||
1408 | serge | 20 | ret |