summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_intlen_base.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:00:27 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:00:27 +0200
commit4e16203d49405cc0eb81d82693e8606e80d004fd (patch)
treef93958b7aa1add68c2e754b8445263a42b9471e9 /libft/src/ft_intlen_base.c
parentSome updates (diff)
download42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.gz
42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.bz2
42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.xz
42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.zst
42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.zip
Some norm
Diffstat (limited to 'libft/src/ft_intlen_base.c')
-rw-r--r--libft/src/ft_intlen_base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libft/src/ft_intlen_base.c b/libft/src/ft_intlen_base.c
index 47da31d..99c0ff2 100644
--- a/libft/src/ft_intlen_base.c
+++ b/libft/src/ft_intlen_base.c
@@ -13,15 +13,14 @@
#include <libft.h>
#include <inttypes.h>
-uint8_t
- ft_intlen_base(long n, char *base)
+uint8_t ft_intlen_base(long n, char *base)
{
uint8_t len;
uint8_t size;
size = ft_strlen(base);
len = 0;
- if (!n)
+ if (n == 0)
return (1);
if (n < 0)
len = 1;