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

iscntrl.3p (3422B)


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