diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-12 19:16:21 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-12 19:16:21 +0200 |
commit | b41111c07a40ee405fb8e8b6c178a315272db7ae (patch) | |
tree | b743a4c153b17369ae27c7554f61b3f11e15df6f /libft | |
parent | Fix (diff) | |
download | 42-minishell-b41111c07a40ee405fb8e8b6c178a315272db7ae.tar.gz 42-minishell-b41111c07a40ee405fb8e8b6c178a315272db7ae.tar.bz2 42-minishell-b41111c07a40ee405fb8e8b6c178a315272db7ae.tar.xz 42-minishell-b41111c07a40ee405fb8e8b6c178a315272db7ae.tar.zst 42-minishell-b41111c07a40ee405fb8e8b6c178a315272db7ae.zip |
Sorted alias
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_strlcpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libft/src/ft_strlcpy.c b/libft/src/ft_strlcpy.c index ed4d924..5076a69 100644 --- a/libft/src/ft_strlcpy.c +++ b/libft/src/ft_strlcpy.c @@ -16,9 +16,9 @@ size_t ft_strlcpy(char *dst, const char *src, size_t size) { - size_t src_len; + size_t src_len; - if (!dst || !src) + if (dst == NULL || src == NULL) return (0); src_len = ft_strlen(src); if (src_len + 1 < size) |