/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gbaconni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/08/16 13:53:58 by gbaconni #+# #+# */ /* Updated: 2021/08/16 13:55:18 by gbaconni ### ########.fr */ /* */ /* ************************************************************************** */ #include #include #include #include int ft_atoi_base(char *str, char *base); int main(void) { char str[32]; char base[32]; int result; printf("Input String [31]: "); scanf("%s", str); printf("Input Base [31]: "); scanf("%s", base); result = ft_atoi_base(str, base); printf("str=%s base=%s result=%d (ft_atoi_base)\n", str, base, result); return (0); }