ASON_CHECK_REPRESENTED_IN(3)

πŸ“¦ version 0.1.2, in fedora 43, fedora 44

πŸ’… ASON INSPECT β€” bestie edition πŸ’…

okay so welcome to ASON INSPECT(3), the part of the ASON manual where we literally just peek at stuff. no cap, that's the whole job. we look at ASON values and we go "hm what are you" and "are you the same as her" and "give me your number". it's giving microscope. it's giving nosy bestie energy. πŸ¦‹


✨ NAME ✨

ason_check_represented_in, ason_check_equal, ason_type, ason_long, ason_double, ason_string β€” Inspect various properties of ASON values.

like. they inspect. properties. of ASON values. that's the vibe check. 🌸


πŸŽ€ SYNOPSIS πŸŽ€

#include <ason/ason.h>

int ason_check_represented_in(ason_t *a, ason_t *b);
int ason_check_equal(ason_t *a, ason_t *b);

ason_type_t ason_type(ason_t *a);
long long ason_long(ason_t *a);
double ason_double(ason_t *a);
char *ason_string(ason_t *a);

yeah just copy that header in and you're set, bestie πŸ’–


🌈 DESCRIPTION 🌈

ason_check_represented_in is used to check whether the ASON value in a is represented in b. like is she in there? is she on the list? we're checking. πŸ‘‘

ason_check_equal is used to check whether two ASON values are equal. are they the same girl? we must know.

ason_type returns the type of the ASON value in a. See ason_values(3). this is the "what ARE you" function and honestly she's the main character of this whole page.

ason_long, and ason_double return the numerical values of numerical ASON values as a C long long or C double respectively. numbers in, numbers out. πŸ’€

ason_string returns the C string value of an ASON string value. The returned value is a new string which must be freed with free (3). okay so listen β€” she hands you a whole new string, you are responsible for her now. free her. do not ghost her. 🫢


⭐ RETURN VALUE ⭐

ason_check_represented_in and ason_check_equal return nonzero if the condition they check for is true. (nonzero = yes = slay. zero = no = not slay.)

ason_type returns the appropriate ason_type_t constant. See ason_values (3).

ason_long and ason_double return the appropriate long long or double value.

ason_string returns a new string which must be freed by the caller. (again. free her. please. 😭)

🚨 GIRL WAIT. Note that ason_long, ason_double, and ason_string will abort if they are used on a value which cannot be converted to the appropriate type. You MUST check the type of the argument with ason_type before calling. like literally must. not optional. not a vibe. you will get aborted. call ason_type first, then call the getter. in that order. periodt. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

go read those next, they're iconic too 🌸


πŸ‘‘ AUTHOR πŸ‘‘

Casey Dahlin <casey.dahlin@gmail.com> β€” the actual legend who wrote this. we stan. πŸŽ€


okay that's the whole page bestie, hope you feel so informed rn. this was the ASON INSPECT(3) manual, living on Linux, dated JANUARY 2014, and the source/version footer is ASON INSPECT(3) β€” so like, same name, same energy, just down at the bottom being cute. bye, go free your strings. πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from