11-recursion-algos/count_char.h
github-classroom[bot] 15c381aaae
Initial commit
2025-01-07 06:46:34 +00:00

23 lines
827 B
C

/*----------------------------------------------------------
* HTBLA-Leonding
* ---------------------------------------------------------
* Title: Count Character Occurrence
* Author: */ your name /*
* ----------------------------------------------------------
* Description:
* Recursive and iterative implementation of an algorithm that
* counts the occurrences of a specific character within a string.
* ----------------------------------------------------------
*/
/* *************************************************************
* see corresponding c-file for instructions
***************************************************************/
#ifndef ___COUNT_CHAR_H
#define ___COUNT_CHAR_H
int count_char_recursive(const char* str, char c);
int count_char_iterative(const char* str, char c);
#endif