Initial commit

This commit is contained in:
github-classroom[bot] 2025-01-07 06:46:34 +00:00 committed by GitHub
commit 15c381aaae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 828 additions and 0 deletions

23
count_char.h Normal file
View file

@ -0,0 +1,23 @@
/*----------------------------------------------------------
* 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