42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_count_letter.c File Reference

The file containing the my_count_letter function. More...

#include "my.h"

Functions

int my_count_letter (char const *str, char c)
 Counts the number of times a letter (c) is in a string (str)
 

Detailed Description

The file containing the my_count_letter function.

Author
Nicolas TORO

Function Documentation

◆ my_count_letter()

int my_count_letter ( char const * str,
char c )

Counts the number of times a letter (c) is in a string (str)

Parameters
strThe string to check
cThe letter to count
Returns
int The number of times the letter is in the string
Author
Nicolas TORO