putchar
- Updated2023-02-21
- 1 minute(s) read
int putchar (int character);
Purpose
Writes the specified character to the standard output. If successful, the function returns the character written; otherwise, the function returns EOF (-1).
![]() |
Note This function is equivalent to fputc(Character, stdout). |
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. |
Return Value
Name | Type | Description |
characterWritten | int | Contains the character written. If an error occurs, putchar 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