ft_charcount - kibotrel/42-Libft GitHub Wiki

int	ft_charcount(char *str, char c)

Description :

Counts how many times the character c occurs in the string str.

Return Value :

Returns the amount of c that are encountered through the string str.

Source code