public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to read environment variable in Glibc code
       [not found] <CAJ8eaTw=DxFEPDJ_zUra6LvoAa1cn9v1Ls+6pyGJQ4PDyXyi8w@mail.gmail.com>
@ 2012-01-09 20:55 ` naveen yadav
  2012-01-10 10:24   ` naveen yadav
  0 siblings, 1 reply; 2+ messages in thread
From: naveen yadav @ 2012-01-09 20:55 UTC (permalink / raw)
  To: libc-help, gcc-help, gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* How to read environment variable in Glibc code
  2012-01-09 20:55 ` How to read environment variable in Glibc code naveen yadav
@ 2012-01-10 10:24   ` naveen yadav
  0 siblings, 0 replies; 2+ messages in thread
From: naveen yadav @ 2012-01-10 10:24 UTC (permalink / raw)
  To: libc-help, gcc-help, gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-09 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAJ8eaTw=DxFEPDJ_zUra6LvoAa1cn9v1Ls+6pyGJQ4PDyXyi8w@mail.gmail.com>
2012-01-09 20:55 ` How to read environment variable in Glibc code naveen yadav
2012-01-10 10:24   ` naveen yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).