x The character written to the file. Indicates success. WEOF Indicates an output error. The function sets errno. For a list of the errno values set by this function, see fputwc.