diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 20:27:21 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 20:27:21 +0100 |
commit | 2b741aba7ac9f3cd1488f86dd5e1fe11d579eb9a (patch) | |
tree | 55c5f819bcb1a6721cd597627d4acc1bcf7a8088 /libft/src/ft_atoi.c | |
parent | Few norm (diff) | |
download | 42-minishell-2b741aba7ac9f3cd1488f86dd5e1fe11d579eb9a.tar.gz 42-minishell-2b741aba7ac9f3cd1488f86dd5e1fe11d579eb9a.tar.bz2 42-minishell-2b741aba7ac9f3cd1488f86dd5e1fe11d579eb9a.tar.xz 42-minishell-2b741aba7ac9f3cd1488f86dd5e1fe11d579eb9a.tar.zst 42-minishell-2b741aba7ac9f3cd1488f86dd5e1fe11d579eb9a.zip |
Norming libft
Diffstat (limited to 'libft/src/ft_atoi.c')
-rw-r--r-- | libft/src/ft_atoi.c | 8 |
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; |