KCGI_WRITER_GET(3)
β¨ kcgi_writer_get(3) β¨
okay so this is a page from the Library Functions Manual (yes bestie, the libkcgi one, we're in the big leagues now π
) and it's about opening a writer allocation. it's short, it's sweet, it's iconic, let's go π
πΈ 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 π
so kcgi_writer_get() opens a writer from request req for later use by the kcgi_writer_write(3) family. that's the whole vibe β you get a writer, you hand it to the write functions, everybody slays. π₯
the type argument is reserved for future use and should be set to zero. like, literally just zero. don't get creative with it, she's not ready yet π
π¨ big one: this may only be used prior to kcgi_writer_disable(3). if you do it after, it will cause a program abort. not a vibe. not a slay. a whole program abort π so get your writer before you disable, periodt.
π RETURN VALUES π
returns a writer, or NULL if allocation fails. that's it, that's the tea βπ
π«Ά SEE ALSO π«Ά
π AUTHORS π
this function was written by Kristaps Dzonsons <kristaps@bsd.lv>. king behaviour, honestly π«‘π
and that's the page!! mwah π this one came from Debian, dated $Mdocdate$, and you can find it filed under KCGI_WRITER_GET(3) in your local man pages. go forth and allocate responsibly bestie π§ββοΈβπ
π¦ where this page comes from
- alpine 3.24: kcgi-doc 1.0.1-r0 Β· ISC
- Copyright (c) 2017 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms