cgi_url_escape(3)

πŸ’– cgi_url_escape(3) πŸ’–

ok so bestie, welcome to the cgi_url_escape page β€” it lives in cgi/cgi.h and honestly? it's giving "tiny function, huge main character energy." ✨


🌸 NAME 🌸

cgi_url_escape β€” url escape a string. that's it. that's the whole job. slay. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <cgi/cgi.h>

NEOERR *cgi_url_escape (const char *buf, char **esc);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • buf β€” a 0 terminated string. like, null-terminated, bestie. it ends when it ends. no cap.

✨ DESCRIPTION ✨

okay so here's the vibe: cgi_url_escape does URL escaping on the string you hand it, and it gives you back a newly allocated string that's all escaped and cute. 🫢

and which characters get escaped, you ask? glad you asked, queen. it's:

  • control characters 😭
  • %
  • ?
  • +
  • space
  • =
  • &
  • /
  • "

that's the list. all of them. periodt. πŸ’…


🌈 RETURN VALUE 🌈

  • esc β€” a newly allocated string ✨ (yes, newly allocated, so it's yours to deal with, iykyk β€” no borrowing going on here)

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:


and that's the page!! πŸŽ€ this little icon was brought to you by ClearSilver, dated 12 July 2007, and yeah it's literally titled cgi_url_escape(3) again at the bottom because manpages love a callback. stay escaped, bestie πŸ’–πŸ§šβ­