C Programming Tutorial
In the C Programming Language, the fputc function writes a character to the stream pointed to by stream.
Syntax
The syntax for the fputc function in the C Language is:
int fputc(int c, FILE *stream);
Parameters or Arguments
c
The character to write to the stream.
stream
The stream to write to.
Returns
The fputc function returns the character written. If an error occurs writing to the stream, the fputc function will set the stream's error indicator and return EOF.
Required Header
In the C Language, the required header for the fputc function is:
#include <stdio.h>
Applies To
In the C Language, the fputc function can be used in the following versions:
- ANSI/ISO 9899-1990