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


mblen

Compute the length of a multibyte character.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <stdlib.h>
int mblen(const char *s, size_t n);
Parameters:

Parameters for this facility are:

s  
const char *  
The multibyte array to measure  
n  
size_t  
The Maximum size  

Remarks:

The mblen() function returns the length of the multibyte character pointed to by s. It examines a maximum of n characters.

The Metrowerks C implementation supports the "C" locale only and returns the value of mbtowc(NULL, s, n).

Return:

mblen() returns the value of mbtowc(NULL, s, n).

See Also:

"Locale specification"

"mbtowc"


[ 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