[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


   NAME
	FPutC -- Write a character to the specified output (buffered) (V36)

   SYNOPSIS
	char = FPutC(fh, char)
	D0           D1   D2

	LONG FPutC(BPTR, LONG)

   FUNCTION
	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.

   INPUTS
	fh   - filehandle to use for buffered I/O
	char - character to write

   RESULT
	char - either the character written, or EOF for an error.

   BUGS
	Older autodocs indicated that you should pass a UBYTE.  The
	correct usage is to pass a LONG in the range 0-255.

   SEE ALSO
	FGetC(), UnGetC(), Flush()