ASON_DOUBLE(3)
π 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 thatason_long,ason_double, andason_stringwill abort if they are used on a value which cannot be converted to the appropriate type. You MUST check the type of the argument withason_typebefore calling. like literally must. not optional. not a vibe. you will get aborted. callason_typefirst, 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
- fedora 43: libason-devel 0.1.2-27.fc43 Β· GPL-3.0-or-later
- fedora 43: libason-devel 0.1.2-27.fc43 Β· GPL-3.0-or-later
- fedora 44: libason-devel 0.1.2-28.fc44 Β· GPL-3.0-or-later
- fedora 44: libason-devel 0.1.2-28.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms