wmemcmp

Compares a specific number of wide characters in memory.

Library:LibC
Classification:Single UNIX
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  int wmemcmp (
     const wchar_t   *ws1,
     const wchar_t   *ws2,
     size_t           length);
  

Parameters

ws1

(IN) Points to the first object to compare.

ws2

(IN) Points to the second object to compare.

length

(IN) Specifies the number of wide characters to compare.

Return Values

If length is not zero, returns 0 if the two objects match. Otherwise, it returns an integer less than or greater than 0, depending on whether ws1 is less than or greater than ws2.

If length is zero, returns 0 if both ws1 and ws2 are valid pointers.

See Also