This commit is contained in:
julianb0 2019-06-17 13:54:10 +02:00
parent dd911cc4f2
commit dbafbdb6e8
No known key found for this signature in database
GPG Key ID: 9C7ACF0C053FB8A1
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,9 @@
; void strcpy(char *, const char *)
;
strcpy:
mov ax2, STRLEN_MAX
jmp strncpy
mov rcx, STRLEN_MAX
movsb.rep.nz ax0, ax1
ret
;
; void strncpy(char *, const char *, int)
@ -16,7 +17,6 @@ strncpy:
ret.cxz
movsb.rep.nz ax0, ax1
ret
;