Printf doesn't result in a call to write

Shaun Jackman sjackman@gmail.com
Mon Sep 11 21:49:00 GMT 2006


On 9/11/06, Matt Gessner <mgessner@avidyne.com> wrote:
> I was under the impression that the \n character at the end would bypass
> that.
>
> I'll add an fflush to stdout to see if that helps.
>
> Good point, though...

The '\n' character will flush the output buffer if the stdio stream is
line buffered. The stdout stream will be line buffered by default if
isatty(STDOUT_FILENO) returns true, which depends on your target, OS,
libgloss, et cetera.

Cheers,
Shaun



More information about the Newlib mailing list