Manpage of PUTCHAR
PUTCHAR
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
3.33 `putchar'--write a character (macro)
SYNOPSIS
#include <stdio.h>
int putchar(int CH);
int _putchar_r(struct _reent *REENT, int CH);
DESCRIPTION
`putchar' is a macro, defined in `stdio.h'. `putchar' writes its
argument to the standard output stream, after converting it from an
`int' to an `unsigned char'.
The alternate function `_putchar_r' is a reentrant version. The
extra argument REENT is a pointer to a reentrancy structure.
RETURNS
If successful, `putchar' returns its argument CH. If an error
intervenes, the result is `EOF'. You can use ``ferror(stdin)'' to
query for errors.
PORTABILITY
ANSI C requires `putchar'; it suggests, but does not require, that
`putchar' be implemented as a macro.
Supporting OS subroutines required: `close', `fstat', `isatty',
`lseek', `read', `sbrk', `write'.
SEE ALSO
putchar
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:29 GMT, May 16, 2005
www.fiveanddime.net