mbstowcs

mblen

#include <stdlib.h>int mblen(const char *str, size_t size);

The mblen( ) function returns the length (in bytes) of a multibyte character pointed to by str. Only the first size number of characters are examined. It returns –1 on error.

If str is null, then mblen( ) returns nonzero if multibyte characters have state-dependent encodings. If they do not, zero is returned.

Related functions are mbtowc( ) and wctomb( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net