Table of Contents

fputc

Description

Write a single character to a file at the current stream position.

Function prototype

bool fputc <voidptr:hFile> <int:char>

Arguments

Name Type Comment
hFile voidptr A handle to a file created by fopen or fopen_s.
char int The character code to be written to the file.

Return value

True if successful, and false if an error occurred.

Example

None.

Comments

None.

See also