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


mbstowcs

Syntax

#include <stdlib.h>

size_t mbstowcs(wchar_t *wcs, const char *s, size_t n);

Description

Converts a multibyte string to a wide character string. The result will be no more than n wide characters.

Return Value

The number of wide characters stored.

Example

int wlen = mbtowcs(wbuf, string, sizeof(wbuf)/sizeof(wchar_t));


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

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