wcsncmp()

compare part of two wide character strings 

Function


SYNOPSIS

#include <wchar.h>

int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);


DESCRIPTION

The wcsncmp() function compares, at most, the first n characters of the strings pointed to by ws1 and ws2.


PARAMETERS

ws1 

Is a null-terminated string to compare.

ws2 

Is a null-terminated string to compare.

n 

Is the number of characters to compare.


RETURN VALUES

The wcsncmp() function returns a positive integer if the substring of ws1 is greater than the substring of ws2, zero if the two substrings are equal and a negative integer if the substring of ws1 is less than the substring of ws2.


CONFORMANCE

ANSI/ISO 9899-1990/AM 1-1995.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
wcscmp(), wcscoll(), wcsrchr(), wcsspn()


PTC MKS Toolkit 10.4 Documentation Build 39.