Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdio.h>
    int fprintf( FILE *fp, const char *format, ... );
    #include <stdio.h>
    #include <wchar.h>
    int fwprintf( FILE *fp, const wchar_t *format, ... );

Description:
    The fprintf function writes output to the file pointed to by fp under
    control of the argument format.  The format string is described under
    the description of the  printf function.

    The fwprintf function is identical to fprintf except that it accepts a
    wide-character string argument for format.

Returns:
    The fprintf function returns the number of characters written, or a
    negative value if an output error occurred.  When an error has occurred,
     errno contains a value indicating the type of error that has been
    detected.

Example:
    #include <stdio.h>

    char *weekday = { "Saturday" };
    char *month = { "April" };

    void main()
      {
        fprintf( stdout, "%s, %s %d, %d\n",
              weekday, month, 18, 1987 );
      }

    produces the following:

    Saturday, April 18, 1987

Classification:
    fprintf is ANSI, fwprintf is ANSI

Systems:
     fprintf - All, Netware

    fwprintf - All

See Also:
    _bprintf, cprintf, printf, sprintf, _vbprintf, vcprintf, vfprintf,
    vprintf, vsprintf

See Also: cprintf vcprintf

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson