fputc man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

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)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net