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

tolower.3p (3111B)


  1. '\" et
  2. .TH TOLOWER "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. tolower,
  12. tolower_l
  13. \(em transliterate uppercase characters to lowercase
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <ctype.h>
  18. .P
  19. int tolower(int \fIc\fP);
  20. int tolower_l(int \fIc\fP, locale_t \fIlocale\fP);
  21. .fi
  22. .SH DESCRIPTION
  23. For
  24. \fItolower\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. \fItolower\fR()
  31. and
  32. \fItolower_l\fR()
  33. functions have as a domain a type
  34. .BR int ,
  35. the value of which is representable as an
  36. .BR "unsigned char"
  37. or the value of EOF. If the argument has any other value, the behavior
  38. is undefined. If the argument of
  39. \fItolower\fR()
  40. or
  41. \fItolower_l\fR()
  42. represents an uppercase letter, and there exists a corresponding
  43. lowercase letter as defined by character type information in the current
  44. locale
  45. or in the locale represented by
  46. .IR locale ,
  47. respectively (category
  48. .IR LC_CTYPE ),
  49. the result shall be the corresponding lowercase letter. All other
  50. arguments in the domain are returned unchanged.
  51. .P
  52. The behavior is undefined if the
  53. .IR locale
  54. argument to
  55. \fItolower_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. Upon successful completion, the
  60. \fItolower\fR()
  61. and
  62. \fItolower_l\fR()
  63. functions shall return the lowercase letter corresponding to the
  64. argument passed; otherwise, they shall return the argument unchanged.
  65. .SH ERRORS
  66. No errors are defined.
  67. .LP
  68. .IR "The following sections are informative."
  69. .SH EXAMPLES
  70. None.
  71. .SH "APPLICATION USAGE"
  72. None.
  73. .SH RATIONALE
  74. None.
  75. .SH "FUTURE DIRECTIONS"
  76. None.
  77. .SH "SEE ALSO"
  78. .IR "\fIsetlocale\fR\^(\|)",
  79. .IR "\fIuselocale\fR\^(\|)"
  80. .P
  81. The Base Definitions volume of POSIX.1\(hy2017,
  82. .IR "Chapter 7" ", " "Locale",
  83. .IR "\fB<ctype.h>\fP",
  84. .IR "\fB<locale.h>\fP"
  85. .\"
  86. .SH COPYRIGHT
  87. Portions of this text are reprinted and reproduced in electronic form
  88. from IEEE Std 1003.1-2017, Standard for Information Technology
  89. -- Portable Operating System Interface (POSIX), The Open Group Base
  90. Specifications Issue 7, 2018 Edition,
  91. Copyright (C) 2018 by the Institute of
  92. Electrical and Electronics Engineers, Inc and The Open Group.
  93. In the event of any discrepancy between this version and the original IEEE and
  94. The Open Group Standard, the original IEEE and The Open Group Standard
  95. is the referee document. The original Standard can be obtained online at
  96. http://www.opengroup.org/unix/online.html .
  97. .PP
  98. Any typographical or formatting errors that appear
  99. in this page are most likely
  100. to have been introduced during the conversion of the source files to
  101. man page format. To report such errors, see
  102. https://www.kernel.org/doc/man-pages/reporting_bugs.html .