ason_copy man page

ason_copy ā€” Copy an ASON value.


#include <ason/ason.h>

ason_t *ason_copy(ason_t *a);


ason_copy copys an ason_t value. The result is a new ason_t which must have ason_destroy (3) called on it separately.

Note that libason may actually use refcounting internally to distinguish objects. Your program should always behave as though ason_copy returns a new pointer. You should never use pointer comparison to inspect pointers to ason_t.

Return Value

ason_copy always returns a valid pointer to ason_t.

See Also

ason(3) ason_destroy(3)


Casey Dahlin <>

Referenced By


JANUARY 2014 Linux User Manuals