cgi_url_escape_more(3)

✨ cgi_url_escape_more(3) ✨

okay bestie, welcome to the cgi_url_escape_more page πŸ’– this one lives in section 3 of the cgi/cgi.h manual, and it's literally just here to make your strings URL-safe. no cap.


🌸 NAME 🌸

cgi_url_escape_more β€” url escape a string πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <cgi/cgi.h>

NEOERR *cgi_url_escape_more (const char *buf, char **esc, const char *other);

like. one function. one include. slay. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • buf β€” a 0 terminated string 🫢 (that's your input, the thing you wanna escape)
  • other β€” a 0 terminated string of characters to escape πŸ‘‘ (yes, you get to add your own extra characters to the escape list, main character energy fr fr)

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe: cgi_url_escape_more will do URL escaping on the passed in string, and return a newly allocated string that is escaped. 🌈

characters which are escaped include:

  • control characters 😭
  • %
  • ?
  • +
  • space
  • =
  • &
  • /
  • "
  • and any characters in other ⭐

not me escaping the whole squad. iconic.


πŸ”₯ RETURN VALUE πŸ”₯

  • esc β€” a newly allocated string ✨ (fresh out the allocator, she's brand new)

🌟 SEE ALSO 🌟

the whole friend group, no one left out πŸ’–:


and that's the whole page, bestie πŸ’…

this one came to you courtesy of ClearSilver, dated 12 July 2007 β€” yeah she's vintage but she still ate πŸŽ€ bye pookie, go escape some urls πŸ¦‹πŸ’–