ason_copy - Man Page

Copy an ASON value.

Synopsis

#include <ason/ason.h>

ason_t *ason_copy(ason_t *a);

Description

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)

Author

Casey Dahlin <casey.dahlin@gmail.com>

Referenced By

ason(3).

JANUARY 2014 Linux User Manuals