Hi
I want to have a list of thousands of strings as one array.
Last time I used to do:
but on rare occasions enumerating all strings gave me wrong output, so now I think this method is just as unsafe asCode:char *InternW[] = {"string1", "string2", "string3", ...}
I came up with a large list of realloc()ing the array buffer and appending the string to it - where I came into trouble with the pointers =/Code:char buf[largenumber];
But is there a safe way of doing that? It's a standard console program, can it have resources, so the strings are saved as standalone binary data in the executable? I don't want to use a txt datafile because I want a sole exe.
Thanks in advance, Hawk