aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-09 17:57:10 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-09 17:57:10 +0200
commit6fe30c97aad7a4a3564e7037d64a43edcb9a2162 (patch)
tree5d36f19eb619811c93b852c5f5e04eb6fe12e85c /include
parentf1babc364b2507cb8999d3132941b056feac37cd (diff)
downloadlibft-6fe30c97aad7a4a3564e7037d64a43edcb9a2162.tar.gz
libft-6fe30c97aad7a4a3564e7037d64a43edcb9a2162.tar.bz2
libft-6fe30c97aad7a4a3564e7037d64a43edcb9a2162.zip
Added ft_dstrwrap, ft_splitf, fixing bug in ft_split
Diffstat (limited to 'include')
-rw-r--r--include/libft_dstr.h3
-rw-r--r--include/libft_str.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/libft_dstr.h b/include/libft_dstr.h
index 732e475..d482f73 100644
--- a/include/libft_dstr.h
+++ b/include/libft_dstr.h
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/03 10:39:51 by charles #+# #+# */
-/* Updated: 2020/04/05 00:37:05 by charles ### ########.fr */
+/* Updated: 2020/06/09 17:35:47 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -35,6 +35,7 @@ typedef struct s_ftdstr
t_ftdstr *ft_dstrnew(char *from);
void ft_dstrdestroy(t_ftdstr *dstr);
t_ftdstr *ft_dstrgrow(t_ftdstr *dstr, size_t at_least);
+t_ftdstr *ft_dstrwrap(char *str);
char *ft_dstrunwrap(t_ftdstr *dstr);
t_ftdstr *ft_dstrinsert(t_ftdstr *dstr, char *inserted, size_t i);
void ft_dstrerase(t_ftdstr *dstr, size_t start, size_t len);
diff --git a/include/libft_str.h b/include/libft_str.h
index 195e750..bfe4ad4 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/04/05 13:52:10 by charles ### ########.fr */
+/* Updated: 2020/06/09 17:47:21 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -59,6 +59,7 @@ 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);
char *ft_strtrim(char const *s1, char const *set);
char **ft_split(char const *s, char c);
+char **ft_splitf(char *s, char c);
int ft_strcount(char *str, char c);
char *ft_itoa(int n);
int ft_atoi_strict(const char *s);