javad karabi wrote:
I am very curious about this.
Where exactly does the "hello" text go, before it is 'flushed' ?
I am thinking that it gets put in some other buffer, then 'flushing' the
buffer does something
to the effect of memcpy the buffer to the framebuffer?
stdout is buffered, the '\n' newline character means that fflush is
called on stdout and so the buffer is flushed. You can turn the buffer
off using "setbuf(stdout, NULL);" and the output will immediately be
displayed.
Phil
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ