Hi, Sunny!
On Nov 19, Sunny Bains wrote:
>
> I'm not sure which variables you are referring to. To establish context,
> the preprocessor is simply a text processor like m4. The scope of any C
> variable however is determinded by the rules of the C language. _ prefixed
> variables are reserved for library writers IIRC and should be avoided.
> I don't have my C99 standard at hand to quote chapter and verse.
Here's a quote (7.1.3 Reserved identifiers):
-- All identifiers that begin with an underscore and either an uppercase
letter or another underscore are always reserved for any use.
-- All identifiers that begin with an underscore are always reserved for
use as identifiers with file scope in both the ordinary and tag name
spaces.
which, I suppose, means that _vars (one underscore) are fine, when used
as local variables. But I'd avoid them too, even if the standard allows
it.
Regards,
Sergei