Newlib, syscall.c and printf

Jean-Marc Saffroy jean-marc.saffroy@joguin.com
Tue Feb 8 14:03:00 GMT 2011


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



More information about the Newlib mailing list