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/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdio.h>
    int fputchar( int c );

Description:
    The fputchar function writes the character specified by the argument c
    to the output stream  stdout.  This function is identical to the
     putchar function.

    The function is equivalent to:


             fputc( c, stdout );


Returns:
    The fputchar function returns the character written.  If a write error
    occurs, the error indicator is set and fputchar returns  EOF.  When an
    error has occurred,  errno contains a value indicating the type of error
    that has been detected.

See Also:
    fputc, fputs, putc, putchar

Example:
    #include <stdio.h>

    void main()
      {
        FILE *fp;
        int c;

        fp = fopen( "file", "r" );
        if( fp != NULL ) {
          c = fgetc( fp );
          while( c != EOF ) {
            fputchar( c );
            c = fgetc( fp );
          }
          fclose( fp );
        }
      }

Classification:
    WATCOM

Systems:
    All

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