aboutsummaryrefslogtreecommitdiff
path: root/functions_reference/ref_ft_atoi_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'functions_reference/ref_ft_atoi_base.c')
-rw-r--r--functions_reference/ref_ft_atoi_base.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/functions_reference/ref_ft_atoi_base.c b/functions_reference/ref_ft_atoi_base.c
index 6bd7052..1599163 100644
--- a/functions_reference/ref_ft_atoi_base.c
+++ b/functions_reference/ref_ft_atoi_base.c
@@ -6,15 +6,15 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 03:20:16 by cacharle #+# #+# */
-/* Updated: 2020/02/08 03:20:18 by cacharle ### ########.fr */
+/* Updated: 2020/04/13 15:00:33 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include <ctype.h>
#include "libasm_test.h"
-static bool
-valid_base(char *base)
+static
+bool valid_base(char *base)
{
if (strlen(base) < 2)
return false;
@@ -30,8 +30,7 @@ valid_base(char *base)
return true;
}
-int
-ref_ft_atoi_base(char *str, char *base)
+int ref_ft_atoi_base(char *str, char *base)
{
long int nb;
int radix;