From 3eae1d082fbd86d48a8f9ee2c57b8931a468cb59 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 21 Nov 2019 05:04:37 +0100 Subject: Initial commit (i cant even compile this shit) --- ft_strdup.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ft_strdup.s (limited to 'ft_strdup.s') diff --git a/ft_strdup.s b/ft_strdup.s new file mode 100644 index 0000000..a10f383 --- /dev/null +++ b/ft_strdup.s @@ -0,0 +1,11 @@ +_ft_strdup: + pop eax + push eax + call _ft_strlen + inc eax + push eax + call _malloc + call _ft_strcpy + ret + + -- cgit