diff options
Diffstat (limited to 'libft/src/ft_strtrim.c')
-rw-r--r-- | libft/src/ft_strtrim.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libft/src/ft_strtrim.c b/libft/src/ft_strtrim.c index 69fd95a..22c54a6 100644 --- a/libft/src/ft_strtrim.c +++ b/libft/src/ft_strtrim.c @@ -12,13 +12,12 @@ #include <libft.h> -char - *ft_strtrim(const char *s1, const char *set) +char *ft_strtrim(const char *s1, const char *set) { size_t len; len = 0; - if (!s1 || !set) + if (s1 == NULL || set == NULL) return (NULL); while (*s1 && ft_strchr(set, *s1)) s1++; |