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

isalnum.3p (3430B)


  1. '\" et
  2. .TH ISALNUM "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. isalnum,
  12. isalnum_l
  13. \(em test for an alphanumeric character
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <ctype.h>
  18. .P
  19. int isalnum(int \fIc\fP);
  20. int isalnum_l(int \fIc\fP, locale_t \fIlocale\fP);
  21. .fi
  22. .SH DESCRIPTION
  23. For
  24. \fIisalnum\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. \fIisalnum\fR()
  31. and
  32. \fIisalnum_l\fR()
  33. functions shall test whether
  34. .IR c
  35. is 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 c
  47. argument is an
  48. .BR int ,
  49. the value of which the application shall ensure is representable as an
  50. .BR "unsigned char"
  51. or equal to the value of the macro EOF. If the argument has any other
  52. value, the behavior is undefined.
  53. .P
  54. The behavior is undefined if the
  55. .IR locale
  56. argument to
  57. \fIisalnum_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. \fIisalnum\fR()
  63. and
  64. \fIisalnum_l\fR()
  65. functions shall return non-zero if
  66. .IR c
  67. is an alphanumeric character; 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 "\fIisalpha\fR\^(\|)",
  84. .IR "\fIisblank\fR\^(\|)",
  85. .IR "\fIiscntrl\fR\^(\|)",
  86. .IR "\fIisdigit\fR\^(\|)",
  87. .IR "\fIisgraph\fR\^(\|)",
  88. .IR "\fIislower\fR\^(\|)",
  89. .IR "\fIisprint\fR\^(\|)",
  90. .IR "\fIispunct\fR\^(\|)",
  91. .IR "\fIisspace\fR\^(\|)",
  92. .IR "\fIisupper\fR\^(\|)",
  93. .IR "\fIisxdigit\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<ctype.h>\fP",
  100. .IR "\fB<stdio.h>\fP"
  101. .\"
  102. .SH COPYRIGHT
  103. Portions of this text are reprinted and reproduced in electronic form
  104. from IEEE Std 1003.1-2017, Standard for Information Technology
  105. -- Portable Operating System Interface (POSIX), The Open Group Base
  106. Specifications Issue 7, 2018 Edition,
  107. Copyright (C) 2018 by the Institute of
  108. Electrical and Electronics Engineers, Inc and The Open Group.
  109. In the event of any discrepancy between this version and the original IEEE and
  110. The Open Group Standard, the original IEEE and The Open Group Standard
  111. is the referee document. The original Standard can be obtained online at
  112. http://www.opengroup.org/unix/online.html .
  113. .PP
  114. Any typographical or formatting errors that appear
  115. in this page are most likely
  116. to have been introduced during the conversion of the source files to
  117. man page format. To report such errors, see
  118. https://www.kernel.org/doc/man-pages/reporting_bugs.html .