_mbbtombc, _mbbtombc_l
Converts a single-byte multibyte character to a corresponding double-byte multibyte character.
unsigned int _mbbtombc( unsigned int c ); unsigned int _mbbtombc_l( unsigned int c, _locale_t locale );
Parameters
- c
-
Single-byte character to convert.
- locale
-
Locale to use.
The _mbbtombc function converts a given single-byte multibyte character to a corresponding double-byte multibyte character. Characters must be within the range 0x20 – 0x7E or 0xA1 – 0xDF to be converted.
The output value is affected by the setting of the LC_CTYPE category setting of the locale; see setlocale for more information. The _mbbtombc version of this function uses the current locale for this locale-dependent behavior; the _mbbtombc_l version is identical except that it use the locale parameter passed in instead.
In earlier versions, _mbbtombc was called hantozen. For new code, use _mbbtombc instead.
| Routine | Required header | Compatibility |
|---|---|---|
| _mbbtombc | <mbstring.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
| _mbbtombc_l | <mbstring.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
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.