From d1ee0c0e55f75432da026f5e0e7cf15cee6918da Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 4 Aug 2020 14:28:35 +0200 Subject: New libft function strclen, bug fix --- libft/include/libft.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libft/include/libft.h') diff --git a/libft/include/libft.h b/libft/include/libft.h index 6513693..0cd5ed1 100644 --- a/libft/include/libft.h +++ b/libft/include/libft.h @@ -148,9 +148,10 @@ int ft_strcmp(const char *s1, const char *s2); long ft_memlchr(const void *s, int c, size_t n); long ft_strlchr(const char *s, int c); size_t ft_strlen(const char *s); +size_t ft_strclen(const char *s, int c); +size_t ft_strnlen(const char *s, size_t size); size_t ft_strlcpy(char *dst, const char *src, size_t size); size_t ft_strlcat(char *dst, const char *src, size_t size); -size_t ft_strnlen(const char *s, size_t size); double ft_sqrt(double x); /* -- cgit v1.2.3