libft
Functions
ft_strcchr.c File Reference
#include "libft.h"
+ Include dependency graph for ft_strcchr.c:

Go to the source code of this file.

Functions

int ft_strcchr (char const *str, char c)
 Counts the number of occurrences of a character in a string. More...
 

Function Documentation

◆ ft_strcchr()

int ft_strcchr ( char const *  str,
char  c 
)

Counts the number of occurrences of a character in a string.

Parameters
strThe string in which to search.
cThe character for which to search.
Returns
The number of occurences.

Definition at line 23 of file ft_strcchr.c.