www.delorie.com/djgpp/doc/libc-2.01/libc_457.html   search  
Go to the first, previous, next, last section, table of contents.


mbtowc

Syntax

#include <stdlib.h>

int mbtowc(wchar_t *pwc, const char *s, size_t n);

Description

Convert the first multibyte sequence in s to a wide character. At most n characters are checked. If pwc is not NULL, the result is stored there. If s is null, the internal shift state is reset.

Return Value

The number of characters used by the multibyte sequence.

Example

string += mbtowc(&wc, string, strlen(string));


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997