I have an array of string declared like so:
char parts[PART_COUNT][PART_MAX];
Then i made a function which takes a string and a array of strings and splits it into those parts, which is declared like this:
WORD PartString(const char *str, char **parts, char sep);
I can seem to read at parts[i][j], but if i try to assign like this:
parts[i][j] = str[x];
I get this error:
Unhandled exception at 0x012614d8 in remote.exe: 0xC0000005: Access violation writing location 0xcccccccc.
Can anyone tell me a way to do this in C? thanks.