x The number of bytes written. Negative value Indicates that an output error occurred. The function sets errno. For a list of errno values set by this function, see fprintf.