From 014d876b691b5c0e84faa98bd308a855269e4ae4 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 15 Jan 2020 11:40:48 +0100 Subject: Added ft_strtol, ft_isspace, ft_todigit, ft_strict_atoi, modified ft_atoi to use ft_strtol --- libft.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libft.h') diff --git a/libft.h b/libft.h index 4f8f04e..bb11c5b 100644 --- a/libft.h +++ b/libft.h @@ -6,13 +6,14 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/07 09:45:02 by cacharle #+# #+# */ -/* Updated: 2020/02/04 03:33:44 by cacharle ### ########.fr */ +/* Updated: 2020/02/04 04:08:15 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef LIBFT_H # define LIBFT_H +# include # include # define TRUE 1 @@ -62,6 +63,7 @@ int ft_isdigit(int c); int ft_isalnum(int c); int ft_isascii(int c); int ft_isprint(int c); +int ft_isspace(int c); int ft_toupper(int c); int ft_tolower(int c); void *ft_calloc(size_t count, size_t size); @@ -90,6 +92,9 @@ void ft_putstr_fd(char *s, int fd); void ft_putendl_fd(char *s, int fd); void ft_putnbr_fd(int n, int fd); +long ft_strtol(const char *str, char **endptr, int base); + + /* ** bonus */ -- cgit