wmemcmp()

compare wide characters in memory 

Function


SYNOPSIS

#include <wchar.h>

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


DESCRIPTION

The wmemcmp() function compares the specified number of wide characters of the specified wide character objects. This function is not affected by locale and all wchar_t values are treated identically. The null wide character and wchar_t values not corresponding to valid characters are not treated specially.


PARAMETERS

ws1 

Is the first wide character object to compare.

ws2 

Is the second wide character object to compare.

n 

Is the number of wide characters to scan.


RETURN VALUES

The wmemcmp() function returns an integer greater than, equal to, or less than zero, accordingly as the object pointer to by ws1 is greater than, equal to, or less than the object pointer to by 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:
wmemchr(), wmemcpy(), wmemmove(), wmemset()


PTC MKS Toolkit 10.3 Documentation Build 39.