[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


wmemcmp

Compare two blocks of memory, treated as wide characters.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <wchar.h>
int wmemcmp(const void * src1, 
  const void * src2,
  size_t n);
Parameters:

Parameters for this function are:

src1  
const void *  
First memory block to compare  
src2  
const void *  
Second memory block to compare  
n  
size_t  
Maximum number of wide characters to compare  

Remarks:

Performs the same task as memcmp for a wide character type.

Return:

wmemcmp returns a zero if all n characters pointed to by src1 and src2 are equal.

wmemcmp returns a negative value if the first non-matching character pointed to by src1 is less than the character pointed to by src2.

wmemcmp returns a positive value if the first non-matching character pointed to by src1 is greater than the character pointed to by src2.

See Also:

"memcmp"

"wcscmp"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000