Subversion Repositories Kolibri OS

Rev

Rev 1408 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*      strcpy()                                        Author: Kees J. Bot */
  2. /*                                                              1 Jan 1994 */
  3.  
  4. /* char *strcpy(char *s1, const char *s2) */
  5. /*      Copy string s2 to s1. */
  6. /* */
  7. #include "asm.h"
  8.  
  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
  20.         ret
  21.