When I try:
char *string;
strcpy(string, "hello");
...It works.
But when I do:
char *strings[10];
strcpy(strings[0], "hello");
...The program crashes.
I know I can of course do:
strings[0] = "hello";
...but in this application, the memory it will point to will be overwritten in later calls.
Any ideas?