/*****************************************************
* Created By: Outsider
* Purpose: Just a simple recursive function that returns
* the mirror of an input string.
*****************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* reversive_recursion(char *);
int main(void){
char myString[255] = "Yeah, whatever I'm a string...";
printf("%s\n", reversive_recursion(myString));
system("PAUSE");
}
char* reversive_recursion(char *myString){
char *a = myString;
if(*(myString+1) != '\0'){
return strncat(reversive_recursion(++myString), a, 1 );
}
else
return myString;
}