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

iswalnum.3p (3600B)


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