cbor_array_append
int cbor_array_append(cbor_item_t **, cbor_item_t *);
if (cbor_array_append(&array, item) < 0) {