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

wcwidth.3p (2432B)


  1. '\" et
  2. .TH WCWIDTH "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. wcwidth
  12. \(em number of column positions of a wide-character code
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <wchar.h>
  17. .P
  18. int wcwidth(wchar_t \fIwc\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIwcwidth\fR()
  23. function shall determine the number of column positions required for
  24. the wide character
  25. .IR wc .
  26. The application shall ensure that the value of
  27. .IR wc
  28. is a character representable as a
  29. .BR wchar_t ,
  30. and is a wide-character code corresponding to a valid character in
  31. the current locale.
  32. .SH "RETURN VALUE"
  33. The
  34. \fIwcwidth\fR()
  35. function shall either return 0 (if
  36. .IR wc
  37. is a null wide-character code), or return the number of column
  38. positions to be occupied by the wide-character code
  39. .IR wc ,
  40. or return \-1 (if
  41. .IR wc
  42. does not correspond to a printable wide-character code).
  43. .SH ERRORS
  44. No errors are defined.
  45. .LP
  46. .IR "The following sections are informative."
  47. .SH EXAMPLES
  48. None.
  49. .SH "APPLICATION USAGE"
  50. This function was removed from the final ISO/IEC\ 9899:\|1990/Amendment 1:\|1995 (E), and the return value
  51. for a non-printable wide character is not specified.
  52. .SH RATIONALE
  53. None.
  54. .SH "FUTURE DIRECTIONS"
  55. None.
  56. .SH "SEE ALSO"
  57. .IR "\fIwcswidth\fR\^(\|)"
  58. .P
  59. The Base Definitions volume of POSIX.1\(hy2017,
  60. .IR "\fB<wchar.h>\fP"
  61. .\"
  62. .SH COPYRIGHT
  63. Portions of this text are reprinted and reproduced in electronic form
  64. from IEEE Std 1003.1-2017, Standard for Information Technology
  65. -- Portable Operating System Interface (POSIX), The Open Group Base
  66. Specifications Issue 7, 2018 Edition,
  67. Copyright (C) 2018 by the Institute of
  68. Electrical and Electronics Engineers, Inc and The Open Group.
  69. In the event of any discrepancy between this version and the original IEEE and
  70. The Open Group Standard, the original IEEE and The Open Group Standard
  71. is the referee document. The original Standard can be obtained online at
  72. http://www.opengroup.org/unix/online.html .
  73. .PP
  74. Any typographical or formatting errors that appear
  75. in this page are most likely
  76. to have been introduced during the conversion of the source files to
  77. man page format. To report such errors, see
  78. https://www.kernel.org/doc/man-pages/reporting_bugs.html .