Freigeben über


stdin, stdout, stderr (Windows CE 5.0)

Send Feedback

Developing an Application > Microsoft C Run-time Library for Windows CE > Run-time Library Global Constants

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

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

#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 freopen function can be used to redirect streams to disk files or to other devices.

The OS allows you to redirect a program's standard input and output at the command level.

See Also

freopen | getchar | putchar

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.