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

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

wctomb

Syntax

 
#include <stdlib.h>

int wctomb(char *s, wchar_t wchar);

Description

Convert a wide character to a multibyte character. The string s must be at least MB_LEN_MAX bytes long.

Return Value

The number of characters stored.

Portability

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

Example

 
char s[MB_LEN_MAX];
int mlen = wctomb(s, wc);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004