M
Marty M
The following causes the "invalid initializer" message during gcc
compile time...
char firstword[] = word(question,1);
the "word" function is...
char * word(char *phrase, int what)
{...body here...}
I'm fairly new to C. What is wrong with the above?
PS: All I'm trying to do is to get the first word on a question, so
I'm tryin to roll my own code, should I use something else? Thanks!
--Marty
compile time...
char firstword[] = word(question,1);
the "word" function is...
char * word(char *phrase, int what)
{...body here...}
I'm fairly new to C. What is wrong with the above?
PS: All I'm trying to do is to get the first word on a question, so
I'm tryin to roll my own code, should I use something else? Thanks!
--Marty