LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

fputc

fputc

int fputc (int character, FILE *stream);

Purpose

Writes the specified character to the an output stream and advances the file position indicator. If successful, the function returns the character; otherwise, EOF (-1) is returned.

Note Note  If the file cannot support positioning requests or if the stream was opened with append mode, the character is appended to the output stream.

Parameters

Input
Name Type Description
character int Contains the character to be written to the standard output. The input must be a character with integer value between 0 and 255.
stream FILE * Contains a pointer to the output stream where the specified character is written.

Return Value

Name Type Description
characterWritten int Contains the character written. If an error occurs, fputc sets the error indicator for the stream, returns EOF, and sets errno to a nonzero value.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Previous

putchar

Next

putc

Previous

putchar

Next

putc