[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Work for developers

[ Please don't Cc: public replies to me. ]

John Goerzen:
> > Under glibc2.1, stdin isn't a variable. it's a function call, a la
> > errno in glibc2.0.
> Whoa, that seems to be rather stupid.  But in any case, still, you can 
> initialize variables to function calls, no?

You must use constant expressions to initialize variables with a static
duration (or aggregate type). stdin must be a macro, but need not be a
constant expression, according to the C standard.

Attachment: pgpjx8lNWXfYQ.pgp
Description: PGP signature

Reply to: