Partager via


stdin, stdout, stderr (Windows Embedded CE 6.0)

1/5/2010

The following are standard streams for input, output, and error output.

FILE *stdin;
FILE *stdout;
FILE *stderr;

Remarks

#include <stdio.h>

Remarks

By default, standard input is read from the keyboard, while standard output and standard error are printed to the screen.

The following stream pointers are available to access the standard streams:

Pointer Stream

stdin

Standard input

stdout

Standard output

stderr

Standard error

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 OS allows you to redirect a program's standard input and output at the command level.

See Also

Reference

Run-Time Library Global Constants