KCGI_WRITER_PUTS(3)
π¦ KCGI_WRITER_PUTS(3) β write into a writer π¦
okay bestie, welcome to the KCGI_WRITER_PUTS(3) page from the Library Functions Manual. This little icon lives in the library βlibkcgiβ, and it's all about pushing a string into a writer. Let's go π
π NAME π
kcgi_writer_puts β write into a writer
π LIBRARY π
library βlibkcgiβ
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
enum kcgi_err
kcgi_writer_puts(struct kcgi_writer *writer, const char *cp);
πΈ DESCRIPTION πΈ
The kcgi_writer_puts() function writes the NUL-terminated string cp to a writer channel opened by kcgi_writer_get(3). This one is lowkey special because it allows writing after kcgi_writer_disable(3), unlike khttp_write(3). And kcgi_writer_puts() is backed by kcgi_writer_write(3) β that's the support system, no cap. π«Ά
π₯ RETURN VALUES π₯
Returns an enum kcgi_err indicating the error state. Here's the whole vibe check:
KCGI_OKβ Success (not an error). Slay. β¨KCGI_ENOMEMβ Internal memory allocation failure. πKCGI_HUPβ The output connection has been terminated. For FastCGI connections, the current connection should be released withkhttp_free(3)and parse loop reentered. πKCGI_FORMβ The connection is still expecting headers withkhttp_head(3). Indicates thatkhttp_body(3)did not return with success or was not invoked. For FastCGI connections, the current connection should be released withkhttp_free(3)and parse loop reentered. πKCGI_SYSTEMβ Internal system error writing to the output stream. π§
π SEE ALSO π
π AUTHORS π
This function was written by Kristaps Dzonsons <kristaps@bsd.lv>.
π cute sign-off: this page is from Debian, dated $Mdocdate$, and it's the KCGI_WRITER_PUTS(3) page. bye bestie, go write some strings! π
π¦ where this page comes from
- alpine 3.24: kcgi-doc 1.0.1-r0 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms