aboutsummaryrefslogtreecommitdiff
path: root/ft_strlen.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strlen.s')
-rw-r--r--ft_strlen.s11
1 files changed, 9 insertions, 2 deletions
diff --git a/ft_strlen.s b/ft_strlen.s
index 2f2dd26..b0f84e7 100644
--- a/ft_strlen.s
+++ b/ft_strlen.s
@@ -10,10 +10,17 @@
; ;
; **************************************************************************** ;
-global _ft_strlen
+%ifdef __LINUX__
+ %define M_FT_STRLEN ft_strlen
+%else
+ %define M_FT_STRLEN _ft_strlen
+%endif
+global M_FT_STRLEN
+
+section .text
; int ft_strlen(char *);
-_ft_strlen:
+M_FT_STRLEN:
mov eax, -1
FT_STRLEN_LOOP:
inc eax