Skip to main content

Name

ec_ptr_array_append — Append to an ec_ptr_array

Synopsis

#include "misc/ec_ptr_array.h"

| int **ec_ptr_array_append** ( | array, |   | |   | element); |   |

ec_ptr_array * <var class="pdparam">array</var>; void * <var class="pdparam">element</var>;

Description

Append an item to an ec_ptr_array.

Parameters

array

An ec_ptr_array. See ec_ptr_array.

element

The pointer that you wish to append.

Return Values

On success this function returns the index of the appended item. On failure, -1 is returned.

Threading

It is legal to call this function in any thread.

Note

While you can use the pointer array functions in any thread, they are not thread safe so use them with caution.

See Also

Was this page helpful?