HP 3000 Manuals

fputc [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

fputc 

Writes a character to an output stream.

Syntax 

     #include <stdio.h>
     int fputc (int c, FILE *stream);

Parameters 

c             A character, expressed as an integer, to be written to the
              output stream.

stream        A pointer to an open stream.

Return Values 

x             The character written, expressed as an integer.

EOF           An error occurred.

Description 

The fputc function writes the character specified in c to the specified
stream and advances the file position.  The character is returned as an
integer.

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

See Also 

fclose(), ferror(), fopen(), fwrite(), fprintf(), getc(), gets(), putc(),
puts(), fputc(), setbuf(), ANSI C 4.9.7.3, POSIX.1 8.1



MPE/iX 5.0 Documentation