fputc function


fputc writes one character to a file.


Library:   stdio.h

Prototype: int fputc(int c,  FILE *stream);

Syntax:    FILE *fp;
           int  ch = 'a';

           fp = fopen("/tmp/file", "w");
	   fputc(ch, fp);
           fclose(fp);


Example program. Copy a file.


Man pages

fputc Write a character.


See Also:


Top Master Index Keywords Functions


Martin Leslie