For Programmers: Free Programming Magazines  


Home > Archive > C > June 2006 > __STDIN__ and __STDOUT__









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author __STDIN__ and __STDOUT__
noridotjabi@gmail.com

2006-06-28, 6:56 pm

Before I knew C I think that I remember seeing some C code that had
something to do with __STDIN__ and __STDOUT__ I was wondering if that
is a part of the C language and if so what it is.
Thanks
Nori

Jack Klein

2006-06-28, 6:56 pm

On 28 Jun 2006 09:53:54 -0700, "noridotjabi@gmail.com"
<noridotjabi@gmail.com> wrote in comp.lang.c:

> Before I knew C I think that I remember seeing some C code that had
> something to do with __STDIN__ and __STDOUT__ I was wondering if that
> is a part of the C language and if so what it is.
> Thanks
> Nori


No, it is not. It is an extension provided by the compiler or some
library used with it.

In C, the identifiers "stdin", "stdout", and "stderr" are macros
defined in <stdio.h> and evaluate to FILE* pointers for the three
pre-opened streams.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~.../FAQ-acllc.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com