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
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

_ismbclegal, _ismbclegal_l, _ismbcsymbol, _ismbcsymbol_l

Checks whether a multibyte character is an legal or symbol character.

int _ismbclegal(
   unsigned int c 
int _ismbclegal_l(
   unsigned int c, 
   _locale_t locale
int _ismbcsymbol(
   unsigned int c 
int _ismbcsymbol_l(
   unsigned int c,
   _locale_t locale


Character to be tested.


Locale to use.

Each of these routines returns a nonzero value if the character satisfies the test condition or 0 if it does not. If c<= 255 and there is a corresponding _ismbb routine (for example, _ismbcalnum corresponds to _ismbbalnum), the result is the return value of the corresponding _ismbb routine.

Each of these functions tests a given multibyte character for a given condition.

The versions of these functions with the _l suffix are identical except that they use the locale passed in instead of the current locale for their locale-dependent behavior. For more information, see Locale.


Test condition

Code page 932 example


Valid multibyte

Returns nonzero if and only if the first byte of c is within ranges 0x81 – 0x9F or 0xE0 – 0xFC, while the second byte is within ranges 0x40 - 0x7E or 0x80 - FC.


Multibyte symbol

Returns nonzero if and only if 0x8141<=c<=0x81AC.

Generic-Text Routine Mappings

Tchar.h routine

_UNICODE and _MBCS not defined

_MBCS defined

_UNICODE defined


Always returns false


Always returns false.


Always returns false


Always returns false.


Required header





For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Community Additions

© 2015 Microsoft