www.delorie.com/djgpp/doc/libc/libc_860.html   search  
libc.a reference

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

wcstombs

Syntax

 
#include <stdlib.h>

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

Description

Converts a wide character string to a multibyte string. At most n characters are stored.

Return Value

The number of characters stored.

Portability

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

Example

 
int len = wcstombs(buf, wstring, sizeof(buf));


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004