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

wcsncmp.3p (2732B)


  1. '\" et
  2. .TH WCSNCMP "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. wcsncmp
  12. \(em compare part of two wide-character strings
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <wchar.h>
  17. .P
  18. int wcsncmp(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. \fIwcsncmp\fR()
  27. function shall compare not more than
  28. .IR n
  29. wide-character codes (wide-character codes that follow a null
  30. wide-character code are not compared) from the array pointed to by
  31. .IR ws1
  32. to the array pointed to by
  33. .IR ws2 .
  34. .P
  35. The sign of a non-zero return value shall be determined by the sign of
  36. the difference between the values of the first pair of wide-character
  37. codes that differ in the objects being compared.
  38. .SH "RETURN VALUE"
  39. Upon successful completion,
  40. \fIwcsncmp\fR()
  41. shall return an integer greater than, equal to, or less than 0, if the
  42. possibly null-terminated array pointed to by
  43. .IR ws1
  44. is greater than, equal to, or less than the possibly null-terminated
  45. array pointed to by
  46. .IR ws2 ,
  47. respectively.
  48. .SH ERRORS
  49. No errors are defined.
  50. .LP
  51. .IR "The following sections are informative."
  52. .SH EXAMPLES
  53. None.
  54. .SH "APPLICATION USAGE"
  55. None.
  56. .SH RATIONALE
  57. None.
  58. .SH "FUTURE DIRECTIONS"
  59. None.
  60. .SH "SEE ALSO"
  61. .IR "\fIwcscasecmp\fR\^(\|)",
  62. .IR "\fIwcscmp\fR\^(\|)"
  63. .P
  64. The Base Definitions volume of POSIX.1\(hy2017,
  65. .IR "\fB<wchar.h>\fP"
  66. .\"
  67. .SH COPYRIGHT
  68. Portions of this text are reprinted and reproduced in electronic form
  69. from IEEE Std 1003.1-2017, Standard for Information Technology
  70. -- Portable Operating System Interface (POSIX), The Open Group Base
  71. Specifications Issue 7, 2018 Edition,
  72. Copyright (C) 2018 by the Institute of
  73. Electrical and Electronics Engineers, Inc and The Open Group.
  74. In the event of any discrepancy between this version and the original IEEE and
  75. The Open Group Standard, the original IEEE and The Open Group Standard
  76. is the referee document. The original Standard can be obtained online at
  77. http://www.opengroup.org/unix/online.html .
  78. .PP
  79. Any typographical or formatting errors that appear
  80. in this page are most likely
  81. to have been introduced during the conversion of the source files to
  82. man page format. To report such errors, see
  83. https://www.kernel.org/doc/man-pages/reporting_bugs.html .