This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Printf doesn't result in a call to write


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]