PS_GET_PARAMETER(3)

πŸ’– PS_GET_PARAMETER πŸ’–

okay bestie, so this one lives in the Library Functions Manual section of the docs (section 3, the "library functions" girlies 🫢), and it's literally just the manual page for PS_get_parameter. no cap. let's get into it πŸ’…


✨ NAME ✨

PS_get_parameter β€” gets certain parameters 🌸


✨ SYNOPSIS ✨

#include <pslib.h>

char *PS_get_parameter(PSDoc *psdoc, char *name, float modifier)

✨ DESCRIPTION ✨

okay so here's the tea 🍡 β€” this function gets several parameters that were set by PS_set_parameter(3).

and here's the important bit, so listen up: parameters are, by definition, string values. like, that's just what they are. string. values. periodt. πŸ’…

⚠️ but also β€” this function cannot be used to retrieve resources, even if those resources were also set by PS_set_parameter(3). so don't come for it asking for resources, it's not gonna happen bestie 😭

✨ RETURN VALUE ✨

it returns the value of the parameter… or NULL πŸ™ˆ

(and yes, NULL is a whole vibe, it means nothing came back. check your vibes. vibe check failed fr fr πŸ’€)


✨ SEE ALSO ✨

  • PS_set_parameter(3) β€” the one that sets the things this one gets. the duo. the iconic pairing. πŸ‘‘

✨ AUTHOR ✨

this manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service king πŸ«‘πŸ’–


and that's the whole page bestie, PS_get_parameter(3) β€” top and bottom both stamped with PS_GET_PARAMETER(3), straight out of the Library Functions Manual. no date, no version, just pure parameter-getting energy βœ¨πŸŽ€πŸ¦‹ go forth and get those strings πŸŒΈπŸ’œ

πŸ“¦ where this page comes from