putchar
Writes a character to the output stream (function or macro)
#include <stdio.h>
int putchar (
int c);
This function or macro returns the character written. If a write error occurs, the error indicator is set and putchar returns EOF. If an error occurs, errno is set.
The putchar function or macro writes the character specified by the argument c to the output stream stdout.
The function is equivalent to:
fputc (c, stdout);
#include <stdio.h> main () { FILE *fp; int c; fp = fopen ("data.fil", "r"); c = fgetc (fp); while (c != EOF) { putchar (c); c = fgetc (fp); }; fclose (fp); }