home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_07
/
1007010b
< prev
next >
Wrap
Text File
|
1992-05-05
|
254b
|
15 lines
Listing 2 -- mblen.c
/* mblen function */
#include <stdlib.h>
/* static data */
_Mbsave _Mbxlen = {0};
int (mblen)(const char *s, size_t n)
{ /* determine length of next multibyte code */
return (_Mbtowc(NULL, s, n, &_Mbxlen));
}