1ASON INSPECT(3)                  User Manuals                  ASON INSPECT(3)
2
3
4

NAME

6       ason_check_represented_in,   ason_check_equal,   ason_type,  ason_long,
7       ason_double, ason_string - Inspect various properties of ASON values.
8

SYNOPSIS

10       #include <ason/ason.h>
11
12       int ason_check_represented_in(ason_t *a, ason_t *b);
13       int ason_check_equal(ason_t *a, ason_t *b);
14
15       ason_type_t ason_type(ason_t *a);
16       long long ason_long(ason_t *a);
17       double ason_double(ason_t *a);
18       char *ason_string(ason_t *a);
19

DESCRIPTION

21       ason_check_represented_in is used to check whether the ASON value in  a
22       is represented in b.
23
24       ason_check_equal is used to check whether two ASON values are equal.
25
26       ason_type returns the type of the ASON value in a.  See ason_values(3).
27
28       ason_long,  and  ason_double  return  the numerical values of numerical
29       ASON values as a C long long or C double respectively.
30
31       ason_string returns the C string value of an  ASON  string  value.  The
32       returned value is a new string which must be freed with free (3).
33
34

RETURN VALUE

36       ason_check_represented_in  and  ason_check_equal  return nonzero if the
37       condition they check for is true.
38
39       ason_type returns the appropriate ason_type_t constant. See ason_values
40       (3).
41
42       ason_long  and  ason_double  return the appropriate long long or double
43       value.
44
45       ason_string returns a new string which must be freed by the caller.
46
47       Note that ason_long, ason_double, and ason_string will  abort  if  they
48       are  used on a value which cannot be converted to the appropriate type.
49       You MUST check the type of the argument with ason_type before calling.
50
51

SEE ALSO

53       ason(3) ason_values(3)
54

AUTHOR

56       Casey Dahlin <casey.dahlin@gmail.com>
57
58
59
60Linux                            JANUARY 2014                  ASON INSPECT(3)
Impressum