Harden the ft_strchr and ft_strrchr functions
authorLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 16:57:01 +0000 (18:57 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sun, 21 Jul 2024 17:02:47 +0000 (19:02 +0200)
commita71bf70ad1908b2aca8d46a58b9b7bcf71622858
treec865bcd03829431b98f263bc4db773fdb48af1d9
parent10facec461d542d637412bdc3e55c299e7bfe49a
Harden the ft_strchr and ft_strrchr functions

This makes them return NULL when the haystack is NULL.
ft_str/ft_strchr.c
ft_str/ft_strrchr.c