Writes a character to a specified file.
Format
#include <stdio.h>
int fputc (int character, FILE *file_ptr);
Arguments
- character
- An object of type int.
- file_ptr
- A file pointer.
Description
This function writes a single character to a file and returns
the character. See also putc in this section.
Return Values
x | The character written to the
file. Indicates success. |
EOF |
Indicates an output error. |
Previous Page | Next Page | Table of Contents | Index