summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_atoi.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libft/src/ft_atoi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libft/src/ft_atoi.c b/libft/src/ft_atoi.c
index ea6189c..6154322 100644
--- a/libft/src/ft_atoi.c
+++ b/libft/src/ft_atoi.c
@@ -12,7 +12,7 @@
#include <libft.h>
-static char ft_setsign(const char c)
+static char ft_setsign(const char c)
{
char sign;
@@ -36,11 +36,11 @@ static unsigned char ft_seti(const char *str)
return (i);
}
-int ft_atoi(const char *str)
+int ft_atoi(const char *str)
{
+ long nb;
unsigned char i;
- char sign;
- long nb;
+ char sign;
i = ft_seti(str);
nb = 0;