source:
trunk/minix/lib/i386/string/strcpy.s@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 388 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | ! strcpy() Author: Kees J. Bot |
2 | ! 1 Jan 1994 | |
3 | .sect .text; .sect .rom; .sect .data; .sect .bss | |
4 | ||
5 | ! char *strcpy(char *s1, const char *s2) | |
6 | ! Copy string s2 to s1. | |
7 | ! | |
8 | .sect .text | |
9 | .define _strcpy | |
10 | .align 16 | |
11 | _strcpy: | |
12 | push ebp | |
13 | mov ebp, esp | |
14 | push esi | |
15 | push edi | |
16 | mov ecx, -1 ! Unlimited length | |
17 | call __strncpy ! Common code | |
18 | mov eax, 8(ebp) ! Return s1 | |
19 | pop edi | |
20 | pop esi | |
21 | pop ebp | |
22 | ret |
Note:
See TracBrowser
for help on using the repository browser.