minishell
ft_atoi.c
Go to the documentation of this file.
1 /* ************************************************************************** */
2 /* */
3 /* ::: :::::::: */
4 /* ft_atoi.c :+: :+: :+: */
5 /* +:+ +:+ +:+ */
6 /* By: kfujita <kfujita@student.42tokyo.jp> +#+ +:+ +#+ */
7 /* +#+#+#+#+#+ +#+ */
8 /* Created: 2022/04/10 16:52:48 by kfujita #+# #+# */
9 /* Updated: 2022/04/25 23:30:55 by kfujita ### ########.fr */
10 /* */
11 /* ************************************************************************** */
12 
13 #include <stddef.h>
14 #include "ft_string.h"
15 
16 int ft_atoi(const char *str)
17 {
18  return ((int)ft_strtol(str, NULL, 10));
19 }
int ft_atoi(const char *str)
Definition: ft_atoi.c:16
long ft_strtol(const char *str, char **endptr, int base)
Definition: ft_strtol.c:69