aboutsummaryrefslogtreecommitdiff
path: root/ft_strdup.s
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-21 05:04:37 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-21 05:04:37 +0100
commit3eae1d082fbd86d48a8f9ee2c57b8931a468cb59 (patch)
tree7325f5683ee3ac012c4f246681cd0dd43a0dbd3e /ft_strdup.s
downloadlibasm-3eae1d082fbd86d48a8f9ee2c57b8931a468cb59.tar.gz
libasm-3eae1d082fbd86d48a8f9ee2c57b8931a468cb59.tar.bz2
libasm-3eae1d082fbd86d48a8f9ee2c57b8931a468cb59.zip
Initial commit (i cant even compile this shit)
Diffstat (limited to 'ft_strdup.s')
-rw-r--r--ft_strdup.s11
1 files changed, 11 insertions, 0 deletions
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
+
+