cgi_display(3)

πŸ’– cgi_display(3) β€” the cgi/cgi.h era πŸ’–

okay bestie, sit DOWN, because this one lives in cgi/cgi.h and it's about to serve your whole CGI output to the user, rendered and gorgeous ✨


🌸 NAME 🌸

cgi_display β€” render and display the CGI output to the user 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <cgi/cgi.h>

NEOERR *cgi_display (CGI *cgi, const char *cs_file);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cgi β€” a pointer a CGI struct allocated with cgi_init πŸ‘‘ (yes, a pointer a CGI struct, that's what it says, we love a grammar moment)
  • cs_file β€” a ClearSilver template file πŸ“„

✨ DESCRIPTION ✨

so cgi_display will render the CS template pointed to by cs_file using the CGI's HDF data set, and send the output to the user πŸ’…

and like, lowkey important detail bestie β€” the output is actually rendered into memory first 🧠✨ so it's not streaming out all messy, it gets built up and then it goes. main character entrance energy fr fr.


🌈 RETURN VALUE 🌈

None. that's it. nothing. the void. πŸ’€ (it's giving "I did my job, no receipts")


πŸ’œ SEE ALSO πŸ’œ

the whole friend group showed up to the function call, no cap 🫢 go read them all, iykyk

and that's the whole page, bestie πŸ’– this one's from ClearSilver, dated 12 July 2007 β€” vintage but still slaying, periodt βœ¨πŸŽ€πŸ¦‹