Home > Electronics Tutorials > C Language Tutorial > stdio.h - Character I/O Functions - putc

C Language Programming Library Reference Guide

stdio.h - Character I/O Functions - putc

Declaration: int putc(int char, FILE *stream); Writes a character (an unsigned char) specified by the argument char to the specified stream and advances the position indicator for the stream.

This may be a macro version of fputc.

On success the character is returned. If an error occurs, the error indicator for the stream is set and EOF is returned.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......