Or login with:
c (converted to an unsigned char) to the output stream pointed to by stream.
The putc macro acts essentially identically to fputc, but is a macro that expands in-line. It may evaluate stream more than once, so arguments given to putc should not be expressions with potential side effects. stream. #include <stdio.h> int main() { int ch; FILE *input; if (input = fopen("stuff", "rt")) { ch = getc(input); while (ch != EOF) { putc(ch, stdout); ch = getc(input); } fclose(input); } return 0; }
You must login to leave a messge