#include <stdlib.h>size_t wcstombs(char *out, const wchar_t *in, size_t size);

The wcstombs( ) function converts the wide-character array pointed to by in into its multibyte equivalent and puts the result in the array pointed to by out. Only the first size bytes of in are converted. Conversion stops before that if the null terminator is encountered.

In C99, out and in are qualified by restrict.

If successful, wcstombs( ) returns the number of bytes written. On failure, -1 is returned.

Related functions are wctomb( ) and mbstowcs( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net