User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







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 );
    }
  }

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/stdio.h/fputchar.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz