add ft_list_sort

This commit is contained in:
2025-04-06 01:39:39 +02:00
parent 34b139c60b
commit 919948abe9
11 changed files with 163 additions and 86 deletions

View File

@ -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