docs(strcpy): fix the documentation for check NULL for rsi

This commit is contained in:
Raphael 2025-12-29 17:03:30 +01:00
parent e84d0ea774
commit cb24a4301e
No known key found for this signature in database

View file

@ -7,7 +7,7 @@ ft_strcpy:
mov rax, rdi ; dest is the return value mov rax, rdi ; dest is the return value
cmp rdi, 0 ; check if dest is NULL cmp rdi, 0 ; check if dest is NULL
je .exit ; if true return 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 je .exit ; if true return NULL
xor ecx, ecx ; index set to 0 xor ecx, ecx ; index set to 0