Bill Cunningham <no****@nspam.net> scribbled the following:
In comp.programming I asked for advice for writing a parser. The code
someone showed me wouldn't compile. I don't know what's wrong. I just want
to write the simpliest of parsers.
int parser(FILE *in,FILE *out);
int main(void){
parser(stdin,stdout);
return0;}
Won't compile. My guess is maybe this should be written
parser(&stdin,&stdout);
But that's my opinion.
Your opinion is wrong. stdin and stdout are of type FILE *, not of
type FILE. The reason it won't compile is the same as in your
previous post - the function parser() isn't defined anywhere, just
declared.
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\--
http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Remember: There are only three kinds of people - those who can count and those
who can't."
- Vampyra