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

wmemcmp.3p (2852B)


  1. '\" et
  2. .TH WMEMCMP "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. wmemcmp
  12. \(em compare wide characters in memory
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <wchar.h>
  17. .P
  18. int wmemcmp(const wchar_t *\fIws1\fP, const wchar_t *\fIws2\fP, size_t \fIn\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIwmemcmp\fR()
  27. function shall compare the first
  28. .IR n
  29. wide characters of the object pointed to by
  30. .IR ws1
  31. to the first
  32. .IR n
  33. wide characters of the object pointed to by
  34. .IR ws2 .
  35. This function shall not be affected by locale and all
  36. .BR wchar_t
  37. values shall be treated identically. The null wide character and
  38. .BR wchar_t
  39. values not corresponding to valid characters shall not be treated
  40. specially.
  41. .P
  42. If
  43. .IR n
  44. is zero, the application shall ensure that
  45. .IR ws1
  46. and
  47. .IR ws2
  48. are valid pointers, and the function shall behave as if the two
  49. objects compare equal.
  50. .SH "RETURN VALUE"
  51. The
  52. \fIwmemcmp\fR()
  53. function shall return an integer greater than, equal to, or less than
  54. zero, respectively, as the object pointed to by
  55. .IR ws1
  56. is greater than, equal to, or less than the object pointed to by
  57. .IR ws2 .
  58. .SH ERRORS
  59. No errors are defined.
  60. .LP
  61. .IR "The following sections are informative."
  62. .SH EXAMPLES
  63. None.
  64. .SH "APPLICATION USAGE"
  65. None.
  66. .SH RATIONALE
  67. None.
  68. .SH "FUTURE DIRECTIONS"
  69. None.
  70. .SH "SEE ALSO"
  71. .IR "\fIwmemchr\fR\^(\|)",
  72. .IR "\fIwmemcpy\fR\^(\|)",
  73. .IR "\fIwmemmove\fR\^(\|)",
  74. .IR "\fIwmemset\fR\^(\|)"
  75. .P
  76. The Base Definitions volume of POSIX.1\(hy2017,
  77. .IR "\fB<wchar.h>\fP"
  78. .\"
  79. .SH COPYRIGHT
  80. Portions of this text are reprinted and reproduced in electronic form
  81. from IEEE Std 1003.1-2017, Standard for Information Technology
  82. -- Portable Operating System Interface (POSIX), The Open Group Base
  83. Specifications Issue 7, 2018 Edition,
  84. Copyright (C) 2018 by the Institute of
  85. Electrical and Electronics Engineers, Inc and The Open Group.
  86. In the event of any discrepancy between this version and the original IEEE and
  87. The Open Group Standard, the original IEEE and The Open Group Standard
  88. is the referee document. The original Standard can be obtained online at
  89. http://www.opengroup.org/unix/online.html .
  90. .PP
  91. Any typographical or formatting errors that appear
  92. in this page are most likely
  93. to have been introduced during the conversion of the source files to
  94. man page format. To report such errors, see
  95. https://www.kernel.org/doc/man-pages/reporting_bugs.html .