This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to read environment variable in Glibc code


Dear All,

I want to disable/enable printf out put to screen by reading
environment variable similar to LD_DEBUG.

I want to control ./stdio-common/printf.c.

So if in environment variable says disable printf it call
int
__printf (const char *format, ...)
{
return done;

}

else it execute original code.

Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]