Thanks Fotis,
I haven't had a chance to look at the code for stream_putc (i'm away from
my computer and on my phone) but based on your description, it sounds like
stream_putc should check and propagate errors. Even if the write to disk
won't happen until later, any errors that are caught shouldn't
Hello Nathan,
Indeed, I should have mentioned that I have selected
CONFIG_STDIO_DISABLE_BUFFERING.
So, at least in my case, no buffering is taking place.
But in the case of buffered output, I think that I agree that fprintf() may
return success for buffered (but not written) data.
On Thu, Jul 20
On Thu, Jul 20, 2023 at 3:02 PM Fotis Panagiotopoulos
wrote:
> Hello,
>
> I am using fprintf() to output some data to a file. This file is located on
> an SD card.
>
> As I realised, fprintf() never returns an error.
>
> I tried to completely remove the SD card from the system, and fprintf
> happ
Hello,
I am using fprintf() to output some data to a file. This file is located on
an SD card.
As I realised, fprintf() never returns an error.
I tried to completely remove the SD card from the system, and fprintf
happily succeeds,
returning the number of bytes that it would have written, if the