diff options
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_memset.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libft/src/ft_memset.c b/libft/src/ft_memset.c index e53cf38..9cc645d 100644 --- a/libft/src/ft_memset.c +++ b/libft/src/ft_memset.c @@ -12,13 +12,12 @@ #include <stddef.h> -void - *ft_memset(void *b, int c, size_t len) +void *ft_memset(void *b, int c, size_t len) { unsigned char *str; str = b; - if (!len) + if (len == 0) return (b); while (len > 0) { |