delorie.com/djgpp/doc/libc/libc_558.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

mblen

Syntax

 
#include <stdlib.h>

int mblen(const char *s, size_t n);

Description

This function returns the number of characters of string s that make up the next multibyte character. No more than n characters are checked.

If s is NULL, the internal shift state is reset.

Return Value

The number of characters that comprise the next multibyte character.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
int n = mblen(string, INT_MAX);
string += n;


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004