*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: fputws | Section: 3 | Source: Digital UNIX | File: fputws.3.gz
fputws(3) Library Functions Manual fputws(3) NAME fputws - Writes a wide-character string to a stream LIBRARY Standard C Library (libc.so, libc.a) SYNOPSIS #include <wchar.h> int fputws( wchar_t *wcs, FILE *stream); Application developers may want to specify an #include statement for <stdio.h> before the one for <wchar.h> if programs are being developed for multiple platforms. The additional #include statement is not re- quired on DIGITAL UNIX systems or by ISO or X/Open standards, but may be required on other vendors' systems that conform to these standards. STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: fputws(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. PARAMETERS Points to a wide-character string to be written to output. Points to the FILE structure of an open file. DESCRIPTION The fputws() function reads the wchar_t string pointed to by the wcs parameter, converts each wide character to a multibyte character, and writes the result to the output stream pointed to by the stream parame- ter. The function does not append a newline or a terminating null char- acter to the result. The fputws() function parallels the fputs() function. The st_ctime and st_mtime fields of the file are marked for update be- tween the successful execution of the fputws() function and the next successful completion of a call to the fflush() or fclose() function on the same stream, or a call to the exit() or abort() function. RETURN VALUES On successful completion, the fputws() function returns a non-negative number to indicate the number of bytes written to the output stream. Otherwise, the function returns -1, sets the error indicator for the stream, and sets errno to indicate the error. ERRORS If any of the following conditions occur, the fputws() function sets errno to the corresponding value: The O_NONBLOCK flag is set for the file descriptor underlying stream and the process would be delayed in the write operation. The file descriptor underlying stream is not a valid file descriptor open for writing. An attempt was made to write to a file that exceeds the process's file-size limit or the maximum file size. The write operation was interrupted by a signal that was caught, and no data was transferred. One of the following errors was encountered: The process is a member of a background process group at- tempting to write to its controlling terminal and TOSTOP is set; the process is neither ignoring nor blocking SIGTTOU and the process group of the process is orphaned. [XPG4-UNIX] A physical I/O error oc- curred. A wide character read from wcs does not correspond to a valid multibyte character in the current locale. There was no free space re- maining on the device containing the file. An attempt was made to write to a pipe or FIFO that is not open for reading by any process. A SIGPIPE signal will also be sent to the process. RELATED INFORMATION Functions: fgetws(3), gets(3), wcstombs(3), printf(3), putc(3), puts(3), putwc(3), wprintf(3) Standards: standards(5) delim off fputws(3)

Navigation Options