summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_strtrim.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:50:20 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:50:20 +0200
commit9a915b797a80c2a776027b1fcc37f1e7b8ab1b24 (patch)
tree99a0fdb289fa4ec03e8b5cc179d6c6d073f6a84a /libft/src/ft_strtrim.c
parentFix (diff)
download42-minishell-9a915b797a80c2a776027b1fcc37f1e7b8ab1b24.tar.gz
42-minishell-9a915b797a80c2a776027b1fcc37f1e7b8ab1b24.tar.bz2
42-minishell-9a915b797a80c2a776027b1fcc37f1e7b8ab1b24.tar.xz
42-minishell-9a915b797a80c2a776027b1fcc37f1e7b8ab1b24.tar.zst
42-minishell-9a915b797a80c2a776027b1fcc37f1e7b8ab1b24.zip
Update
Diffstat (limited to 'libft/src/ft_strtrim.c')
-rw-r--r--libft/src/ft_strtrim.c5
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++;