aboutsummaryrefslogtreecommitdiff
path: root/include/libft_str.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libft_str.h')
-rw-r--r--include/libft_str.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/libft_str.h b/include/libft_str.h
index a373e86..07a5fe0 100644
--- a/include/libft_str.h
+++ b/include/libft_str.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/31 10:39:22 by cacharle #+# #+# */
-/* Updated: 2020/05/08 13:39:12 by charles ### ########.fr */
+/* Updated: 2020/05/09 12:29:21 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,6 +14,7 @@
# define LIBFT_STR_H
# include <stddef.h>
+# include <stdbool.h>
# include "libft_ctype.h"
# include "libft_mem.h"
# include "libft_util.h"
@@ -52,7 +53,8 @@ int ft_atoi(const char *nptr);
void ft_striter(char *s, void (*f)(char *));
void ft_striteri(char *s, void (*f)(unsigned int, char *));
-char *ft_substr(char const *s, unsigned int start, size_t len);
+char *ft_strsub(char const *s, size_t start, size_t len);
+char *ft_strsubf(char const *s, size_t start, size_t len);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_strjoin3(char const *s1, char const *s2, char const *s3);
char *ft_strjoinf(char const *s1, char const *s2, t_ftstrjoinf_tag tag);
@@ -75,6 +77,20 @@ int ft_strequ(char const *s1, char const *s2);
int ft_strnequ(char const *s1, char const *s2, size_t n);
char *ft_strtolower(char *s);
char *ft_strtoupper(char *s);
+char *ft_strcat3(char *dest, const char *src1, const char *src2);
+
+/*
+** glob
+*/
+
+bool ft_fnmatch(const char *pattern, const char *string);
+
+/*
+** NULL terminated string array
+*/
+
+char *ft_strsjoin(char **strs, char *delim);
+char *ft_strsjoinf(char **strs, char *delim);
/*
** bloat ?