Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Standard streams
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Standard output (stdout)==<!-- This section is linked from [[COMMAND.COM]] --> Standard output is a stream to which a program writes its output data. The program requests data transfer with the ''write'' operation. Not all programs generate output. For example, the ''[[rename (computing)|file rename]]'' command (variously called ''[[mv (Unix)|mv]]'', ''[[move (command)|move]]'', or ''[[ren (command)|ren]]'') is silent on success. Unless [[Redirection (computing)|redirected]], standard output is inherited from the parent process. In the case of an interactive shell, that is usually the [[text terminal]] which initiated the program. The [[file descriptor]] for standard output is 1 (one); the [[POSIX]] <code><unistd.h></code> definition is <code>STDOUT_FILENO</code>; the corresponding C <code><stdio.h></code> variable is <code>FILE* stdout</code>; similarly, the C++ <code><iostream></code> variable is <code>std::cout</code>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)