diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 14:28:35 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 14:28:35 +0200 |
commit | d1ee0c0e55f75432da026f5e0e7cf15cee6918da (patch) | |
tree | f0ba3ebf5f6ba8d2ce093938f36602d64e7b43ff /libft/src/ft_strlen.c | |
parent | Unset is fine (diff) | |
download | 42-minishell-d1ee0c0e55f75432da026f5e0e7cf15cee6918da.tar.gz 42-minishell-d1ee0c0e55f75432da026f5e0e7cf15cee6918da.tar.bz2 42-minishell-d1ee0c0e55f75432da026f5e0e7cf15cee6918da.tar.xz 42-minishell-d1ee0c0e55f75432da026f5e0e7cf15cee6918da.tar.zst 42-minishell-d1ee0c0e55f75432da026f5e0e7cf15cee6918da.zip |
New libft function strclen, bug fix
Diffstat (limited to 'libft/src/ft_strlen.c')
-rw-r--r-- | libft/src/ft_strlen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libft/src/ft_strlen.c b/libft/src/ft_strlen.c index 90f5110..2b26bf0 100644 --- a/libft/src/ft_strlen.c +++ b/libft/src/ft_strlen.c @@ -18,7 +18,7 @@ size_t const char *ptr; ptr = s; - while (ptr && *ptr) + while (ptr != NULL && *ptr != '\0') ptr++; return (ptr - s); } |