> a negative value if an output error occurred
So in your case that's an error and printf returns a negative value. But yes, how many bytes were written is a lost information.
> a negative value if an output error occurred
So in your case that's an error and printf returns a negative value. But yes, how many bytes were written is a lost information.