Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

_ismbslead, _ismbstrail

int _ismbslead(
   const unsigned char *string,
   const unsigned char *current 
int _ismbstrail(
   const unsigned char *string,
   const unsigned char *current 


Pointer to start of string or previous known lead byte.
Pointer to position in string to be tested.

Return Value

_ismbslead and _ismbstrail return –1 if the character is a lead or trail byte, respectively. Otherwise they return zero.


The _ismbslead and _ismbstrail routines perform context-sensitive tests for multibyte-character string lead and trail bytes; they determine whether a given substring pointer points to a lead byte or a trail byte. _ismbslead and _ismbstrail are slower than their _ismbblead and _ismbbtrail counterparts because they take the string context into account.


Routine Required header Optional headers Compatibility
_ismbslead <mbctype.h> or <mbstring.h> <ctype.h>,* <limits.h>, <stdlib.h> Win 98, Win Me, Win NT, Win 2000, Win XP
_ismbstrail <mbctype.h> or <mbstring.h> <ctype.h>,* <limits.h>, <stdlib.h> Win 98, Win Me, Win NT, Win 2000, Win XP

* For manifest constants for the test conditions.

For additional compatibility information, see Compatibility in the Introduction.


All versions of the C run-time libraries.

See Also

Character Classification Routines | _ismbc Function Overview | is, isw Function Overview | _ismbb Routines | Run-Time Routines and .NET Framework Equivalents

© 2015 Microsoft