C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
wctomb, _fwctomb
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The wctomb function converts its <wchar> argument to the
     corresponding multibyte character and stores the result at
     <mbchar>.
 
     The _fwctomb function is a model-independent (large-model) form of
     the wctomb function. It can be called from any point in any
     program.
 
     Return Value
 
     If either wctomb or _fwctomb converts the wide character to a
     multibyte character, it returns the number of bytes──which is
     never greater than MB_CUR_MAX──in the wide character. If <wchar>
     is the wide-character null character (L'\0'), wctomb returns 0.
     If the conversion is not possible in the current locale, wctomb
     returns -1.
                                    -♦-