Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

putchar(3)



putchar, flush write character putchar(ch) flush( ) writes out its argument and returns it unchanged. Only the low-order byte is written, and only if it is non-null. Unless other arrangements have been made, writes in unbuffered fashion on the standard output file. Associated with this routine is an external variable which has the structure of a buffer discussed under putc (III). If the file descriptor part of this structure (first word) is greater than 2, output via is buffered. To achieve buffered output one may say, for example,

fout = dup(1);

or

fout = creat(...);

In such a case must be called before the program terminates in order to flush out the buffered output. may be called at any time. putc (III) The notion is kludgy.



putchar(3)