cgiwrap_read man page

cgiwrap_read — cgiwrap input function


#include <cgi/cgiwrap.h>
void cgiwrap_read (char *buf, int buf_len, int *read_len);


buf - a pre-allocated buffer to read the data into
buf_len - the size of the pre-allocated buffer


cgiwrap_read is used to read incoming data from the client, usually from a POST or PUT HTTP request. It wraps the part of fread(stdin).

Return Value

read_len - the number of bytes read into buf

See Also

cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgiwrap_writef(3), cgiwrap_init_std(3), cgiwrap_writevf(3), cgiwrap_read(3), cgiwrap_write(3), cgiwrap_getenv

Referenced By

cgiwrap_getenv(3), cgiwrap_init_emu(3), cgiwrap_init_std(3), cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_write(3), cgiwrap_writef(3), cgiwrap_writevf(3).

12 July 2007 ClearSilver cgi/cgiwrap.h