putc man page on Xenix

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

PUTC(3)								       PUTC(3)

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

SYNOPSIS
       #include <stdio.h>

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

       int putchar(c)

       int fputc(c, stream)
       FILE *stream;

       int putw(w, stream)
       FILE *stream;

DESCRIPTION
       Putc  appends  the  character c to the named output stream.  It returns
       the character written.

       Putchar(c) is defined as putc(c, stdout).

       Fputc behaves like putc, but is a genuine function rather than a macro.

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

SEE ALSO
       fopen(3), fclose(3), getc(3), puts(3), printf(3), fread(3)

DIAGNOSTICS
       These functions return the constant EOF upon error.  Since  this	 is  a
       good integer, ferror(3) should be used to detect putw errors.

BUGS
       Because	it  is	implemented  as a macro, putc treats a stream argument
       with side effects improperly.  In particular

       putc(c, *f++);

       doesn't work sensibly.

       Errors can occur long after the call to putc.

7th Edition			 April 1, 1989			       PUTC(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

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