Kernel Stdio Theory: Difference between revisions

m
Link to C
[unchecked revision][unchecked revision]
m (Link to C)
 
Line 3:
===What is Standard Input/Output?===
 
Standard Input and Output, and Standard Error, are streams which are implemented as part of the [[C]] Standard Library. A stream is a read/write interface for access to a file, hardware resource, or another process.
 
On inclusion of the <tt>stdio.h</tt> header, three streams are auto created, and associated with the environment's Standard Input, standard Output and standard Error streams. It is conventional, and default in most cases, for the process's Standard Output and Standard Error to be tied to the terminal which opened it. And unless StdIn is redirected, the default source of Standard Input is taken to be the keyboard.
Anonymous user