From 4388cc2d74f1ee8930ca1baaeeea67da925f8a2c Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 13 Apr 2020 15:03:29 +0200 Subject: Added argument precsion in error message for all function but ft_strdup, Changed function prototype style --- functions_reference/ref_ft_atoi_base.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'functions_reference/ref_ft_atoi_base.c') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 #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; -- cgit