summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_uintlen_base.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:54:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:54:12 +0200
commit5ef27d97f1dc36b4e9dd2420ba25166e370913d1 (patch)
tree05fe79b148c750a30c3f0149e933cb3ebc211738 /libft/src/ft_uintlen_base.c
parentUpdate (diff)
download42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.gz
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.bz2
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.xz
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.zst
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.zip
End
Diffstat (limited to 'libft/src/ft_uintlen_base.c')
-rw-r--r--libft/src/ft_uintlen_base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libft/src/ft_uintlen_base.c b/libft/src/ft_uintlen_base.c
index ba96a29..a695c3f 100644
--- a/libft/src/ft_uintlen_base.c
+++ b/libft/src/ft_uintlen_base.c
@@ -13,15 +13,14 @@
#include <libft.h>
#include <inttypes.h>
-uint8_t
- ft_uintlen_base(unsigned long n, char *base)
+uint8_t ft_uintlen_base(unsigned long n, char *base)
{
uint8_t len;
uint8_t size;
size = ft_strlen(base);
len = 0;
- if (!n)
+ if (n == 0)
return (1);
while (n != 0)
{