Problem with memchr.c
irlalmeida opened this issue · 2 comments
irlalmeida commented
= ft_memchr.c ==================================================================
$> norminette ft_memchr.c | grep -E '(Error|Warning)'
norminette : command not found
$> clang -Wextra -Wall -Werror -g3 -fsanitize=address ft_memchr.c main.c libft.a -o user_exe
/home/irlalmeida/Documents/VSCode/42/libft-war-machine/tests/Part1_functions/ft_memchr/main.c:81:16: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
printf("%s", ft_memchr(tab, -1, 7));
~~ ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
I believe the error is with the program itself because the code compiles with other testers. However, I haven't submitted it to Moullinete yet
0x050f commented
For this one i'm assuming you're using linux, because on mac the problem doesn't show up, I will just fix it by casting to (char *) mem_chr, thx !