docs(strcpy): fix the documentation for check NULL for rsi
This commit is contained in:
parent
e84d0ea774
commit
cb24a4301e
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ ft_strcpy:
|
|||
mov rax, rdi ; dest is the return value
|
||||
cmp rdi, 0 ; check if dest is NULL
|
||||
je .exit ; if true return NULL
|
||||
cmp rsi, 0 ; check if dest is NULL
|
||||
cmp rsi, 0 ; check if src is NULL
|
||||
je .exit ; if true return NULL
|
||||
xor ecx, ecx ; index set to 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue