From fe15975761f2dcb52d360a521c5ef912d66d5e1c Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 10 Feb 2020 05:24:41 +0100 Subject: Added ft_reverse, ft_isblank, ft_strnlen, ft_strpbrk, ft_strsep --- include/libft_algo.h | 3 ++- include/libft_ctype.h | 3 ++- include/libft_str.h | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libft_algo.h b/include/libft_algo.h index 14496dd..65308b8 100644 --- a/include/libft_algo.h +++ b/include/libft_algo.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/19 07:22:57 by cacharle #+# #+# */ -/* Updated: 2020/02/10 03:04:17 by cacharle ### ########.fr */ +/* Updated: 2020/02/10 05:17:39 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -42,5 +42,6 @@ int ft_mergesort(void *base, size_t nel, size_t width, int (*compar)(const void *, const void *)); int ft_heapsort(void *base, size_t nel, size_t width, int (*compar)(const void *, const void *)); +void ft_reverse(void *base, size_t nel, size_t width); #endif diff --git a/include/libft_ctype.h b/include/libft_ctype.h index 85e0e05..ad42c64 100644 --- a/include/libft_ctype.h +++ b/include/libft_ctype.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:35:31 by cacharle #+# #+# */ -/* Updated: 2020/01/31 10:36:34 by cacharle ### ########.fr */ +/* Updated: 2020/02/10 05:18:30 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,6 +23,7 @@ int ft_isalnum(int c); int ft_isascii(int c); int ft_isprint(int c); int ft_isspace(int c); +int ft_isblank(int c); /* ** conversion diff --git a/include/libft_str.h b/include/libft_str.h index 80fb09f..e3faeab 100644 --- a/include/libft_str.h +++ b/include/libft_str.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:39:22 by cacharle #+# #+# */ -/* Updated: 2020/02/10 04:32:44 by cacharle ### ########.fr */ +/* Updated: 2020/02/10 05:24:00 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -57,6 +57,9 @@ int ft_strcasecmp(const char *s1, const char *s2); int ft_strncasecmp(const char *s1, const char *s2, size_t n); size_t ft_strspn(const char *s, const char *charset); size_t ft_strcspn(const char *s, const char *charset); +char *ft_strpbrk(const char *s, const char *charset); +char *ft_strsep(char **stringp, const char *delim); +size_t ft_strnlen(const char *s, size_t maxlen); /* ** bloat ? -- cgit