Subversion Repositories Kolibri OS

Rev

Rev 1408 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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