aboutsummaryrefslogtreecommitdiff
path: root/src/str
diff options
context:
space:
mode:
Diffstat (limited to 'src/str')
-rw-r--r--src/str/ft_atoi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/str/ft_atoi.c b/src/str/ft_atoi.c
index fa31407..1b9bfc4 100644
--- a/src/str/ft_atoi.c
+++ b/src/str/ft_atoi.c
@@ -12,6 +12,10 @@
#include "libft.h"
+/**
+** Convert a string to an int
+*/
+
int ft_atoi(const char *str)
{
return ((int)ft_strtol(str, (char**)NULL, 10));