qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
stdin, stdout, stderr, stdaux, stdprn
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Name:      stdin, stdout, stderr, stdaux, stdprn
 
  Include:   <stdio.h>
 
  Syntax:    FILE * stdin;
             FILE * stdout;
             FILE * stderr;
             FILE * stdaux;
             FILE * stdprn;
 
  Synopsis:  These are standard streams for input, output, and error
             output.
 
  See also:  I/O (Streams) Functions
 
     By default, standard input is read from the keyboard, while
     standard output and standard error are printed to the screen.
 
     Two additional streams, standard auxilary and standard print, are
     provided by DOS (but not by OS/2). The assignment of these streams
     depends on the machine configuration; they usually refer to the
     first serial port and the first parallel port, repectively, if
     those ports exist.
 
     The following stream pointers are available to access the standard
     streams:
 
     Pointer     Stream
 
     stdin       Standard input
 
     stdout      Standard output
 
     stderr      Standard error
 
     stdaux      Standard auxilary (DOS only)
 
     stdprn      Standard print (DOS only)
 
     These pointers can be used as arguments to functions; some
     functions, such as getchar and putchar, use stdin and stdout
     automatically.
 
     These pointers are constants, and cannot be assigned new values.
     The freopen function can be used to redirect the streams to disk
     files, or to other devices. DOS and OS/2 allow you to redirect a
     program's standard input and output at the command level, and OS/2
     allows you to redirect a program's standard error.