By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

__STDIN__ and __STDOUT__

P: n/a
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

Jun 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 28 Jun 2006 09:53:54 -0700, "no*********@gmail.com"
<no*********@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/~a...FAQ-acllc.html
Jun 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.