Help us and donate little Bitcoins to pay the server costs: 1AXLPuRUBYc1JczTW4XS65GL6oWjNP2Vt2

User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer







because of the inhumane working conditions at amazon in Germany, I will offer the Amazon app no more! (ARD Reportage)
c:stdio.h:fputchar
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.

example

#include <stdio.h>
 
int main( void )
  {
    FILE *fp;
    int c;
 
    fp = fopen( "file.txt", "r" );
    if( fp != NULL ) {
      c = fgetc( fp );
      while( c != EOF ) {
        fputchar( c );
        c = fgetc( fp );
      }
      fclose( fp );
    }
  }
advertising
c/stdio.h/fputchar.txt · Last modified: 2013/01/22 22:02 (external edit)

The new Question & Answer System is online and waiting for your Questions about Programming problems http://ask.code-reference.com Impressum