ultrix man page for fputc

Query: fputc

OS: ultrix

Section: 3s

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

putc(3s)																  putc(3s)

Name
       putc, putchar, fputc, putw - put character or word on a stream

Syntax
       #include <stdio.h>

       int putc(c, stream)
       char c;
       FILE *stream;

       putchar(c)

       fputc(c, stream)
       FILE *stream

       putw(w, stream)
       FILE *stream;

Description
       The routine appends the character c to the named output stream.	It returns the character written.

       The routine is defined as (c, stdout).

       The routine behaves like but is a genuine function rather than a macro.

       The routine appends word (that is, int) w to the output stream.	It returns zero.  The routine neither assumes nor causes special alignment
       in the file.

Restrictions
       Because it is implemented as a macro, treats a stream argument with side effects incorrectly.  In particular, `putc(c, *f++);' doesn't work
       as expected.

Diagnostics
       The and functions return the constant EOF upon error.  The function returns a non-zero value on error.

See Also
       fclose(3s), fopen(3s), fread(3s), getc(3s), printf(3s), puts(3s)

																	  putc(3s)
Related Man Pages
putw(3s) - bsd
putw(3) - mojave
fputc(3) - osx
putc_unlocked(3) - osx
putchar(3) - osx
Similar Topics in the Unix Linux Community
Replacing dates]] with (dates)]]
search a file between two begin and end strings in c
C++ getline, parse and take first tokens by condition
Pure C function pointer on printing vowels twice
Script to find file types and info