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


wcsncmp

Compare not more than a specified number of 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  csncmp(const wchar_t * str1, 
  const wchar_t * str2, size_t n);
Parameters:

Parameters for this function are:

str1  
wchar_t *  
First comparison string  
str2  
wchar_t *  
Second comparison string  
n  
size_t  
Maximum number of characters to compare  

Remarks:

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

Return:

Returns a zero if the first n characters of str1 and str2 are equal, a negative value if str1 is less than str2, and a positive value if str1 is greater than str2.

See Also:

"strncmp"


[ 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