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

25 lines
No EOL
827 B
C

/*----------------------------------------------------------
* HTBLA-Leonding
* ---------------------------------------------------------
* Title: Reverse String
* Author: */ your name /*
* ----------------------------------------------------------
* Description:
* Recursive and iterative implementation of an algorithm that
* reverses a given string.
* ----------------------------------------------------------
*/
/* *************************************************************
* see corresponding c-file for instructions
***************************************************************/
#ifndef ___REVERSE_STRING_H
#define ___REVERSE_STRING_H
#include <stdbool.h>
void reverse_string_recursive(char* str, int start, int end);
void reverse_string_iterative(char* str, int start, int end);
#endif