Writes a wide-character string to a file without copying the null-terminating character. Format #include <wchar.h> int fputws (const wchar_t *wstr, FILE *file_ptr);
1 – Arguments
wstr A pointer to a wide-character string. file_ptr A file pointer.
2 – Description
The fputws function converts the specified wide-character string to a multibyte character string and writes it to the specified file. The function does not append a terminating null byte corresponding to the null wide-character to the output string.
3 – Return Values
Nonnegative value Indicates success. -1 Indicates an error. The function sets errno. For a list of the values, see fputwc.