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: Newlib, syscall.c and printf


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


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