T
todorov
Hi all,
I have a strange problem occuring when i declare an array of strings in
ANSI C style:
if i have something like :
struct blabla {
//...
char *names[] = {"name1","name2", "name3" };
};
, it doesn't work. But if i declare it by itself (not in a struct - i.e
for instance in the outmost scope of any function) , it works. What am
i doing wrong? Thanks a lot.
I have a strange problem occuring when i declare an array of strings in
ANSI C style:
if i have something like :
struct blabla {
//...
char *names[] = {"name1","name2", "name3" };
};
, it doesn't work. But if i declare it by itself (not in a struct - i.e
for instance in the outmost scope of any function) , it works. What am
i doing wrong? Thanks a lot.