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