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

iswprint.3p (3556B)


  1. '\" et
  2. .TH ISWPRINT "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. iswprint,
  12. iswprint_l
  13. \(em test for a printable wide-character code
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <wctype.h>
  18. .P
  19. int iswprint(wint_t \fIwc\fP);
  20. int iswprint_l(wint_t \fIwc\fP, locale_t \fIlocale\fP);
  21. .fi
  22. .SH DESCRIPTION
  23. For
  24. \fIiswprint\fR():
  25. The functionality described on this reference page is aligned with the
  26. ISO\ C standard. Any conflict between the requirements described here and the
  27. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  28. .P
  29. The
  30. \fIiswprint\fR()
  31. and
  32. \fIiswprint_l\fR()
  33. functions shall test whether
  34. .IR wc
  35. is a wide-character code representing a character of class
  36. .BR print
  37. in the current locale,
  38. or in the locale represented by
  39. .IR locale ,
  40. respectively; see the Base Definitions volume of POSIX.1\(hy2017,
  41. .IR "Chapter 7" ", " "Locale".
  42. .P
  43. The
  44. .IR wc
  45. argument is a
  46. .BR wint_t ,
  47. the value of which the application shall ensure is a wide-character
  48. code corresponding to a valid character in the locale used by the
  49. function, or equal to the value of the macro WEOF. If the argument
  50. has any other value, the behavior is undefined.
  51. .P
  52. The behavior is undefined if the
  53. .IR locale
  54. argument to
  55. \fIiswprint_l\fR()
  56. is the special locale object LC_GLOBAL_LOCALE or is not a valid locale
  57. object handle.
  58. .SH "RETURN VALUE"
  59. The
  60. \fIiswprint\fR()
  61. and
  62. \fIiswprint_l\fR()
  63. functions shall return non-zero if
  64. .IR wc
  65. is a printable wide-character code; otherwise, they shall return 0.
  66. .SH ERRORS
  67. No errors are defined.
  68. .LP
  69. .IR "The following sections are informative."
  70. .SH EXAMPLES
  71. None.
  72. .SH "APPLICATION USAGE"
  73. To ensure applications portability, especially across natural
  74. languages, only these functions and the functions in the reference pages
  75. listed in the SEE ALSO section should be used for character classification.
  76. .SH RATIONALE
  77. None.
  78. .SH "FUTURE DIRECTIONS"
  79. None.
  80. .SH "SEE ALSO"
  81. .IR "\fIiswalnum\fR\^(\|)",
  82. .IR "\fIiswalpha\fR\^(\|)",
  83. .IR "\fIiswcntrl\fR\^(\|)",
  84. .IR "\fIiswctype\fR\^(\|)",
  85. .IR "\fIiswdigit\fR\^(\|)",
  86. .IR "\fIiswgraph\fR\^(\|)",
  87. .IR "\fIiswlower\fR\^(\|)",
  88. .IR "\fIiswpunct\fR\^(\|)",
  89. .IR "\fIiswspace\fR\^(\|)",
  90. .IR "\fIiswupper\fR\^(\|)",
  91. .IR "\fIiswxdigit\fR\^(\|)",
  92. .IR "\fIsetlocale\fR\^(\|)",
  93. .IR "\fIuselocale\fR\^(\|)"
  94. .P
  95. The Base Definitions volume of POSIX.1\(hy2017,
  96. .IR "Chapter 7" ", " "Locale",
  97. .IR "\fB<locale.h>\fP",
  98. .IR "\fB<wctype.h>\fP"
  99. .\"
  100. .SH COPYRIGHT
  101. Portions of this text are reprinted and reproduced in electronic form
  102. from IEEE Std 1003.1-2017, Standard for Information Technology
  103. -- Portable Operating System Interface (POSIX), The Open Group Base
  104. Specifications Issue 7, 2018 Edition,
  105. Copyright (C) 2018 by the Institute of
  106. Electrical and Electronics Engineers, Inc and The Open Group.
  107. In the event of any discrepancy between this version and the original IEEE and
  108. The Open Group Standard, the original IEEE and The Open Group Standard
  109. is the referee document. The original Standard can be obtained online at
  110. http://www.opengroup.org/unix/online.html .
  111. .PP
  112. Any typographical or formatting errors that appear
  113. in this page are most likely
  114. to have been introduced during the conversion of the source files to
  115. man page format. To report such errors, see
  116. https://www.kernel.org/doc/man-pages/reporting_bugs.html .