__STDIN__ and __STDOUT__

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • noridotjabi@gmail.com

    __STDIN__ and __STDOUT__

    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

    #2
    Re: __STDIN__ and __STDOUT__

    On 28 Jun 2006 09:53:54 -0700, "noridotjabi@gm ail.com"
    <noridotjabi@gm ail.com> wrote in comp.lang.c:
    [color=blue]
    > 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[/color]

    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.l earn.c-c++

    Comment

    Working...