Initial revision
This commit is contained in:
22
lib/i386/string/strcpy.s
Executable file
22
lib/i386/string/strcpy.s
Executable file
@@ -0,0 +1,22 @@
|
||||
! strcpy() Author: Kees J. Bot
|
||||
! 1 Jan 1994
|
||||
.sect .text; .sect .rom; .sect .data; .sect .bss
|
||||
|
||||
! char *strcpy(char *s1, const char *s2)
|
||||
! Copy string s2 to s1.
|
||||
!
|
||||
.sect .text
|
||||
.define _strcpy
|
||||
.align 16
|
||||
_strcpy:
|
||||
push ebp
|
||||
mov ebp, esp
|
||||
push esi
|
||||
push edi
|
||||
mov ecx, -1 ! Unlimited length
|
||||
call __strncpy ! Common code
|
||||
mov eax, 8(ebp) ! Return s1
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebp
|
||||
ret
|
||||
Reference in New Issue
Block a user