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


wcscspn

Find the first character in one wide character string that is also in another.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <wchar.h>
size_t wcscspn(const wchar_t * str, 
  const wchar_t * set);
Parameters:

Parameters for this function are:

str  
wchar_t *  
The string to be searched  
set  
wchar_t *  
The set of characters to be searched for  

Remarks:

The wcscspn() function finds the first character in the null terminated wide-character string s1 that is also in the null terminated wide character string s2. for this purpose, the null terminators are considered part of the strings. The function starts examining characters at the beginning of s1 and continues searching until a character in s1 matches a character in s2.

Return:

wcscspn() returns the index of the first character in s1 that matches a character in s2.

See Also:

"strcspn"


[ 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