kcgi_writer_get - open a writer allocation


KCGI_WRITER_GET(3) Library Functions Manual KCGI_WRITER_GET(3)

NAME

kcgi_writer_get — open a writer allocation

LIBRARY

library “libkcgi”

SYNOPSIS

#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>

struct kcgi_writer *

kcgi_writer_get(struct kreq *req, int type);

DESCRIPTION

The kcgi_writer_get() function opens a writer from request r for subsequent use by the kcgi_writer_write(3) family. The type argument is reserved for future use and should be set to zero. It may only be used prior to kcgi_writer_disable(3), otherwise it will cause a program abort.

RETURN VALUES

Returns a writer or NULL if allocation fails.

SEE ALSO

kcgi_writer_disable(3), kcgi_writer_write(3)

AUTHORS

This function was written by Kristaps Dzonsons <[email protected]>. GNU $Mdocdate$ KCGI_WRITER_GET(3)


Updated 2024-01-29 - jenkler.se | uex.se