PS_GET_VALUE(3)

πŸ’– PS_GET_VALUE πŸ’–

okay bestie, so this is the manual page for PS_get_value(3) β€” it lives in the Library Functions Manual section 3, iykyk. it's giving "small function, big feelings" and honestly? we're obsessed. πŸŽ€


✨ NAME ✨

PS_get_value β€” gets certain values πŸ‘‘

like... it gets values. some of them. the certain ones. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pslib.h>

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

🌸 DESCRIPTION 🌸

so here's the tea, bestie: this function grabs a bunch of values that were set earlier by PS_set_value(3). that's the whole vibe. and listen β€” the parameters are, by definition, float values. not vibes, not guesses, floats. periodt. ✨

now, the modifier parameter is the main character here. it tells you which resource you're pulling the value for. that can be:

  • the id of a font πŸ–‹οΈ
  • the id of an image πŸ–ΌοΈ

and if you're not using it? it must be 0.0. no cap. not 1.0, not 0, not "whatever, close enough" β€” 0.0. 🫢


πŸ’€ RETURN VALUE πŸ’€

returns the value of the parameter, or NULL. that's it, that's the whole answer. πŸ™ˆ

not me writing a float function that can return NULL, but okay, we don't make the rules, we just report them. 😭

πŸ”₯ SEE ALSO πŸ”₯

  • PS_set_value(3) β€” the one who set the values in the first place. the origin story. 🌈

πŸ’œ AUTHOR πŸ’œ

this manual page was written by Uwe Steinmann uwe@steinmann.cx. icon behavior. πŸ‘‘


and that's the whole page, bestie!! this was PS_GET_VALUE(3) in the Library Functions Manual β€” yes, the footer literally just says PS_GET_VALUE(3) again, they said "same energy, no notes." πŸ’… no date, no version, just vibes and a page number that isn't a page number. slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from