ft_strchr
Subject
Understandable explanation
The strchr()
function searches for one character in a string. If it finds the character, it returns a pointer to the first occurence of this specific character.
If it don't find any occurence of this character, it returns NULL
.
We also have to return a pointer to the character if the character is \0
.
Hints
ft_strchr.c
Commented solution
Last updated
Was this helpful?