add ft_list_sort
This commit is contained in:
@ -7,7 +7,7 @@ section .text
|
||||
|
||||
ft_strdup:
|
||||
test rdi, rdi ; test if arg is NULL
|
||||
je err
|
||||
jz err
|
||||
|
||||
push rdi ;push to use it for the strcpy
|
||||
call ft_strlen
|
||||
@ -15,7 +15,7 @@ ft_strdup:
|
||||
|
||||
call malloc wrt ..plt
|
||||
test rax, rax
|
||||
je malloc_failed
|
||||
jz malloc_failed
|
||||
mov rdi, rax
|
||||
pop rsi
|
||||
call ft_strcpy
|
||||
|
Reference in New Issue
Block a user