Docs » Autodocs » dos.library » FPutC
FPutC -- Write a character to the specified output (buffered) (V36)
char = FPutC(fh, char) D0 D1 D2 LONG FPutC(BPTR, LONG)
Writes a single character to the output stream. This call is buffered. Use Flush() between buffered and unbuffered I/O on a filehandle. Interactive filehandles are flushed automatically on a newline, return, '\0', or line feed.
fh - filehandle to use for buffered I/O char - character to write
char - either the character written, or EOF for an error.
Older autodocs indicated that you should pass a UBYTE. The correct usage is to pass a LONG in the range 0-255.
FGetC(), UnGetC(), Flush()
|