| putc |
(int ch, Stream stream) |
yoix.stdio |
| |
Writes the character represented by integer
ch
to
stream,
and returns that character, or
-1
if an error occurred.
Note that
putc
is identical to
fputc
and is included only as a convenience for those accustomed to using
one or the other when writing C programs.
Refer to the
getc
documentation for additional information.
| |
| Example: |
The program,
import yoix.stdio.*;
int ch;
while ((ch = getc(stdin)) != -1)
putc(ch, stdout);
copies standard input to standard output one character at a time,
so it is very slow.
| | |
| Return: |
int
| | |
| See Also: |
fgetc,
fputc,
getc,
getchar,
putchar,
ungetc
|
|
Yoix is a registered trademark of AT&T Inc.
|