[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()