aboutsummaryrefslogtreecommitdiff
path: root/libft.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-15 11:40:48 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-04 04:09:19 +0100
commit014d876b691b5c0e84faa98bd308a855269e4ae4 (patch)
tree8c26213ab8426f906fa143f904ab0f6a39e22013 /libft.h
parent435fec311c0c5173ae99c32b8f4e6431bd1e43d2 (diff)
downloadlibft-014d876b691b5c0e84faa98bd308a855269e4ae4.tar.gz
libft-014d876b691b5c0e84faa98bd308a855269e4ae4.tar.bz2
libft-014d876b691b5c0e84faa98bd308a855269e4ae4.zip
Added ft_strtol, ft_isspace, ft_todigit, ft_strict_atoi, modified ft_atoi to use ft_strtol
Diffstat (limited to 'libft.h')
-rw-r--r--libft.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libft.h b/libft.h
index 4f8f04e..bb11c5b 100644
--- a/libft.h
+++ b/libft.h
@@ -6,13 +6,14 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 <errno.h>
# include <string.h>
# 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
*/