1FPUTWS(3P)                 POSIX Programmer's Manual                FPUTWS(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       fputws - put a wide-character string on a stream
13

SYNOPSIS

15       #include <stdio.h>
16       #include <wchar.h>
17
18       int fputws(const wchar_t *restrict ws, FILE *restrict stream);
19
20

DESCRIPTION

22       The fputws() function shall write a character string  corresponding  to
23       the  (null-terminated)  wide-character  string  pointed to by ws to the
24       stream pointed to by stream. No character corresponding to  the  termi‐
25       nating null wide-character code shall be written.
26
27       The st_ctime and st_mtime fields of the file shall be marked for update
28       between the successful execution of fputws() and  the  next  successful
29       completion  of  a  call to fflush() or fclose() on the same stream or a
30       call to exit() or abort().
31

RETURN VALUE

33       Upon successful completion, fputws() shall return a  non-negative  num‐
34       ber.  Otherwise,  it  shall  return  -1, set an error indicator for the
35       stream,  and set errno to indicate the error.
36

ERRORS

38       Refer to fputwc().
39
40       The following sections are informative.
41

EXAMPLES

43       None.
44

APPLICATION USAGE

46       The fputws() function does not append a <newline>.
47

RATIONALE

49       None.
50

FUTURE DIRECTIONS

52       None.
53

SEE ALSO

55       fopen(),  the  Base   Definitions   volume   of   IEEE Std 1003.1-2001,
56       <stdio.h>, <wchar.h>
57
59       Portions  of  this text are reprinted and reproduced in electronic form
60       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
61       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
62       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
63       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
64       event of any discrepancy between this version and the original IEEE and
65       The  Open Group Standard, the original IEEE and The Open Group Standard
66       is the referee document. The original Standard can be  obtained  online
67       at http://www.opengroup.org/unix/online.html .
68
69
70
71IEEE/The Open Group                  2003                           FPUTWS(3P)
Impressum