HELPLIB.HLB  —  CRTL  putwc
    Converts a wide character to its corresponding multibyte value,
    and writes the result to a specified file.

    Format

      #include  <wchar.h>

      wint_t putwc  (wint_t wc, FILE *file_ptr);

1  –  Arguments

 wc

    An object of type wint_t.

 file_ptr

    A file pointer.

2  –  Description

    Since putwc might be implemented as a macro, a file pointer
    argument with side effects (for example putwc (wc, *f++)) might
    be evaluated incorrectly. In such a case, use the fputwc function
    instead.

    See also fputwc.

3  –  Return Values

    x                  The character written to the file. Indicates
                       success.
    WEOF               Indicates an output error. The function sets
                       errno. For a list of the errno values set by
                       this function, see fputwc.
Close Help