From c0bcb694bbcef0273d6e6fa93854ce6a10432b87 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 23 Nov 2019 04:43:37 +0100 Subject: ft_atoi_base with calling convention is better, still need to handle negative --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index ff6ce3c..b89fdc8 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/22 02:02:24 by cacharle #+# #+# */ -/* Updated: 2019/11/23 02:13:29 by cacharle ### ########.fr */ +/* Updated: 2019/11/23 04:33:27 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -63,13 +63,13 @@ int main() /* g[ret] = 0; */ /* printf("%s\n", g); */ /* */ - char *h = ft_strdup("bonjour"); - printf("%s\n", h); - free(h); + /* char *h = ft_strdup("bonjour"); */ + /* printf("%s\n", h); */ + /* free(h); */ /* printf("%d\n", check_base("01")); */ - /* printf("%d\n", ft_atoi_base(" \t\v\r \n 1012h", "01")); */ + printf("%d\n", ft_atoi_base(" \t\n\r\v\f\r 010\t0101001", "01")); return 0; } -- cgit