wmemcmp

Compares two arrays of wide characters.

Format

#include  <wchar.h>

int wmemcmp  (const wchar_t *s1, const wchar_t
             *s2, size_t n);

Arguments

s1, s2
Pointers to wide-character arrays.
n
The maximum number of wide characters to be compared.

Description

This function compares the first n wide characters of the array pointed to by s1 with the first n wide characters of the array pointed to by s2. The wide characters are compared not according to locale-dependent collation rules, but as integral objects of type wchar_t.

Return Values
Arrays are equal. 
Positive value  The first array is greater than the second. 
Negative value  The first array is less than the second. 


Previous Page | Next Page | Table of Contents | Index