Antti Karanta wrote: > > Hi! > Is it possible to inline initialize a struct whose one member is a string array of arbitrary length (terminated w/ a NULL ptr)? What I mean is something like this: > > typedef struct { char** x ; int y ; } Foo ; > static const Foo myfoos[] = { { { "hello", ...
I'm looking at a program which stores perl scripts in an array. Each script is stored as a single entry in that array, and the whole set of them live in a single header file (escaped out the wazoo to get the perl code intact through the C preprocessor.) The issue is that many of these strings are quite long, which ...
for some reason this doesnt work. it doesnt give an error. it just wont run. like closes right away. string names[10] = {0}; if i do string names[10] = {""}; works fine. can you explain the difference. and the proper way to intialize stirng arrays. also can you explain why the first one doesn't work, yet it doesn't produce an error. ...
It contains text read in String from a Word file...i've used the built in Split function to tokenize the word file read using " " as the delimeter..then i traverse the splitx array using the loop..when i get "Copyright" in the splitx array, i move ahead and put all the contents of the splitx array which follow, into the PROJECTS array..i ...