I have the following code:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZE (sizeof(strings)/4)
int main(void)
{
int i;
char *strings[] = {
"Line1 here",
"Line2 there",
"Line3 whatever",
"Line4 blahhh",
};
for (i=0; i<SIZE; ++i)
strings[i] = strrev(strings[i]);
for (i=0; i<SIZE; ++i)
printf("%s\n",strings[i]);
system("PAUSE");
return 0;
}
I'm having problems with it, when I run it it freezes, but it compiles well, I think I'm not using pointers well.
Thanks in advance.