Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1408 serge 1
#       strcpy()                                        Author: Kees J. Bot
2
#                                                               1 Jan 1994
3
# char *strcpy(char *s1, const char *s2)
4
#       Copy string s2 to s1.
5
#
6
 
7
.intel_syntax
8
 
9
.global _strcpy
10
 
11
        .text
12
	.align	16
13
_strcpy:
14
	push	ebp
15
	mov	ebp, esp
16
	push	esi
17
	push	edi
18
        mov     ecx, -1         # Unlimited length
19
        call    _strncpy        # Common code
20
        mov     eax, [8+ebp]    # Return s1
21
	pop	edi
22
	pop	esi
23
	pop	ebp
24
	ret