Hi Alan, "\n" does not explicitly force the flush. I have configured the line buffering which is actually working on printf and fputs, but not on fwrite. I am using some application code that is running ok on Linux, but on Nuttx it is not flushing properly. It flush only when the buffer is filled. I hope I make myself clear now.
Jernej On Fri, May 14, 2021 at 12:22 PM Alan Carvalho de Assis <acas...@gmail.com> wrote: > Hi Jernej, > > Please define "not working"! :-) > > Are you flushing it? Also "\n" at end of line forces it to be flushed. > > BR, > > Alan > > On Friday, May 14, 2021, Jernej Turnsek <jernej.turn...@gmail.com> wrote: > > > Hi all, > > > > while working with stdout fwrite function, I have noticed that line > > buffering is not working. Is this by design or it is a bug? > > > > Regards, > > Jernej > > >