Number pyramid, Text reverse without using strtok(), test for stack overflow and test for aliasing added