This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Newlib, syscall.c and printf
- From: Jean-Marc Saffroy <jean-marc dot saffroy at joguin dot com>
- To: Hard Maker <hardmaker at gmail dot com>
- Cc: newlib at sourceware dot org, arm-gnu at codesourcery dot com
- Date: Tue, 08 Feb 2011 14:40:12 +0100
- Subject: Re: Newlib, syscall.c and printf
- References: <4D5143C6.1080506@gmail.com>
On 02/08/2011 02:23 PM, Hard Maker wrote:
> snprintf(data, 20, "Real : %.4f", fVal);
> _write(0, data, strlen(data)); // Work fine
>
>
> printf("Real: %.4f", fVal); // this line do nothing, no error...
> nothing and the program stop here
Does it show up after a call to fflush(stdout) ? If it does, then you
need to add a newline character or tune buffering for your app, see man
setbuf.
JM