__STDIN__ and __STDOUT__

Discussion in 'C Programming' started by noridotjabi, Jun 28, 2006.

  1. noridotjabi

    noridotjabi Guest

    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
     
    noridotjabi, Jun 28, 2006
    #1
    1. Advertisements

  2. noridotjabi

    Jack Klein Guest

    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, Jun 28, 2006
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...