ec_ptr_array_append
Last updated March 2020
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)
; | |
Description
Append an item to an ec_ptr_array.
- array
-
An ec_ptr_array. See ec_ptr_array.
- element
-
The pointer that you wish to append.
On success this function returns the index of the appended item. On failure, -1
is returned.
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?