Translations of this page:

C/C++ tips

stdout/in/err streams in C and C++

#include <stdio.h>
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;

#include <unistd.h>

The following symbolic constants shall be defined for file streams:

STDERR_FILENO File number of stderr; 2.
STDIN_FILENO File number of stdin; 0.
STDOUT_FILENO File number of stdout; 1.
c-cpp-tips.txt · Last modified: 07.20.2011 12:24 by npelov
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki