logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

fputws.3p (3560B)


  1. '\" et
  2. .TH FPUTWS "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. fputws
  12. \(em put a wide-character string on a stream
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <stdio.h>
  17. #include <wchar.h>
  18. .P
  19. int fputws(const wchar_t *restrict \fIws\fP, FILE *restrict \fIstream\fP);
  20. .fi
  21. .SH DESCRIPTION
  22. The functionality described on this reference page is aligned with the
  23. ISO\ C standard. Any conflict between the requirements described here and the
  24. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  25. .P
  26. The
  27. \fIfputws\fR()
  28. function shall write a character string corresponding to the
  29. (null-terminated) wide-character string pointed to by
  30. .IR ws
  31. to the stream pointed to by
  32. .IR stream .
  33. No character corresponding to the terminating null wide-character code
  34. shall be written.
  35. .P
  36. The last data modification and last file status change timestamps
  37. of the file shall be marked for update between the successful
  38. execution of
  39. \fIfputws\fR()
  40. and the next successful completion of a call to
  41. \fIfflush\fR()
  42. or
  43. \fIfclose\fR()
  44. on the same stream or a call to
  45. \fIexit\fR()
  46. or
  47. \fIabort\fR().
  48. .SH "RETURN VALUE"
  49. Upon successful completion,
  50. \fIfputws\fR()
  51. shall return a non-negative number. Otherwise,
  52. it shall return \-1, set an error indicator for the stream,
  53. and set
  54. .IR errno
  55. to indicate the error.
  56. .SH ERRORS
  57. Refer to
  58. .IR "\fIfputwc\fR\^(\|)".
  59. .LP
  60. .IR "The following sections are informative."
  61. .SH EXAMPLES
  62. None.
  63. .SH "APPLICATION USAGE"
  64. The
  65. \fIfputws\fR()
  66. function does not append a
  67. <newline>.
  68. .P
  69. This volume of POSIX.1\(hy2017 requires that successful completion simply return a non-negative
  70. integer. There are at least three known different implementation
  71. conventions for this requirement:
  72. .IP " *" 4
  73. Return a constant value.
  74. .IP " *" 4
  75. Return the last character written.
  76. .IP " *" 4
  77. Return the number of bytes written. Note that this implementation
  78. convention cannot be adhered to for strings longer than
  79. {INT_MAX}
  80. bytes as the value would not be representable in the return type of the
  81. function. For backwards-compatibility, implementations can return the
  82. number of bytes for strings of up to
  83. {INT_MAX}
  84. bytes, and return
  85. {INT_MAX}
  86. for all longer strings.
  87. .SH RATIONALE
  88. None.
  89. .SH "FUTURE DIRECTIONS"
  90. None.
  91. .SH "SEE ALSO"
  92. .IR "Section 2.5" ", " "Standard I/O Streams",
  93. .IR "\fIfopen\fR\^(\|)"
  94. .P
  95. The Base Definitions volume of POSIX.1\(hy2017,
  96. .IR "\fB<stdio.h>\fP",
  97. .IR "\fB<wchar.h>\fP"
  98. .\"
  99. .SH COPYRIGHT
  100. Portions of this text are reprinted and reproduced in electronic form
  101. from IEEE Std 1003.1-2017, Standard for Information Technology
  102. -- Portable Operating System Interface (POSIX), The Open Group Base
  103. Specifications Issue 7, 2018 Edition,
  104. Copyright (C) 2018 by the Institute of
  105. Electrical and Electronics Engineers, Inc and The Open Group.
  106. In the event of any discrepancy between this version and the original IEEE and
  107. The Open Group Standard, the original IEEE and The Open Group Standard
  108. is the referee document. The original Standard can be obtained online at
  109. http://www.opengroup.org/unix/online.html .
  110. .PP
  111. Any typographical or formatting errors that appear
  112. in this page are most likely
  113. to have been introduced during the conversion of the source files to
  114. man page format. To report such errors, see
  115. https://www.kernel.org/doc/man-pages/reporting_bugs.html .