Sun Java System Web Server 7.0 NSAPI Developer's Guide

netbuf_getc

The netbuf_getc function retrieves a character from the cursor position of the network buffer specified by b.


Note –

Because the constant IO_EOF has a value of 0, netbuf_getc cannot be used to read data that may contain a null character. To read binary data, use netbuf_getbytes or netbuf_grab.


Syntax

netbuf_getc(netbuf b);

Returns

The integer representing the character if a character is retrieved, or the constant IO_EOF or IO_ERROR for end of file or error.

Parameters

netbuf b is the buffer from which to retrieve one character.

See Also

netbuf_buf2sd, netbuf_close, netbuf_getbytes, netbuf_grab, netbuf_open