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

wctob.3p (2524B)


  1. '\" et
  2. .TH WCTOB "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. wctob
  12. \(em wide-character to single-byte conversion
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <stdio.h>
  17. #include <wchar.h>
  18. .P
  19. int wctob(wint_t \fIc\fP);
  20. .fi
  21. .SH DESCRIPTION
  22. The functionality described on this reference page is aligned with the
  23. ISO\ C standard. Any conflict between the requirements described here and the
  24. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  25. .P
  26. The
  27. \fIwctob\fR()
  28. function shall determine whether
  29. .IR c
  30. corresponds to a member of the extended character set whose character
  31. representation is a single byte when in the initial shift state.
  32. .P
  33. The behavior of this function shall be affected by the
  34. .IR LC_CTYPE
  35. category of the current locale.
  36. .SH "RETURN VALUE"
  37. The
  38. \fIwctob\fR()
  39. function shall return EOF if
  40. .IR c
  41. does not correspond to a character with length one in the initial shift
  42. state. Otherwise, it shall return the single-byte representation of
  43. that character as an
  44. .BR "unsigned char"
  45. converted to
  46. .BR int .
  47. .SH ERRORS
  48. No errors are defined.
  49. .LP
  50. .IR "The following sections are informative."
  51. .SH EXAMPLES
  52. None.
  53. .SH "APPLICATION USAGE"
  54. None.
  55. .SH RATIONALE
  56. None.
  57. .SH "FUTURE DIRECTIONS"
  58. None.
  59. .SH "SEE ALSO"
  60. .IR "\fIbtowc\fR\^(\|)"
  61. .P
  62. The Base Definitions volume of POSIX.1\(hy2017,
  63. .IR "\fB<stdio.h>\fP",
  64. .IR "\fB<wchar.h>\fP"
  65. .\"
  66. .SH COPYRIGHT
  67. Portions of this text are reprinted and reproduced in electronic form
  68. from IEEE Std 1003.1-2017, Standard for Information Technology
  69. -- Portable Operating System Interface (POSIX), The Open Group Base
  70. Specifications Issue 7, 2018 Edition,
  71. Copyright (C) 2018 by the Institute of
  72. Electrical and Electronics Engineers, Inc and The Open Group.
  73. In the event of any discrepancy between this version and the original IEEE and
  74. The Open Group Standard, the original IEEE and The Open Group Standard
  75. is the referee document. The original Standard can be obtained online at
  76. http://www.opengroup.org/unix/online.html .
  77. .PP
  78. Any typographical or formatting errors that appear
  79. in this page are most likely
  80. to have been introduced during the conversion of the source files to
  81. man page format. To report such errors, see
  82. https://www.kernel.org/doc/man-pages/reporting_bugs.html .