Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

filebuf_getc() Function

The filebuf_getc function retrieves a character from the current file position and returns the character as an integer. The function then increments the current file position.

Use filebuf_getc to sequentially read characters from a buffered file.


filebuf_getc(filebuf b);

Return Values

An integer containing the character retrieved, or the constant IO_EOF or IO_ERROR upon an end of file or an error.


filebuf b is the name of the file buffer.

See Also

filebuf_close() Function, filebuf_buf2sd() Function, filebuf_open() Function, filter_create() Function