![]() |
O2S C Library 1.8.2
Provide high-level data-structures and other fundamental tools for C projects
|
Add and remove elements from dynamic arrays. More...
Go to the source code of this file.
Functions | |
bool | array_push_back_n (array_t *self, const void *elements, size_t count) |
Adds count elements at the end of the array. | |
bool | array_push_back (array_t *self, const void *element) |
Adds one element at the end of the array. | |
bool | array_pop_back_n (array_t *self, void *destination, size_t count) |
Moves to destination the n last elements of the array. | |
bool | array_pop_back (array_t *self, void *destination) |
Moves to destination the last element of the array. | |
bool | array_pop_front_n (array_t *self, void *destination, size_t count) |
Moves to destination the count first elements of self . | |
bool | array_pop_front (array_t *self, void *destination) |
Moves to destination the first element of self . |
Add and remove elements from dynamic arrays.
Definition in file push_pop.c.
bool array_pop_back | ( | array_t * | self, |
void * | destination ) |
Moves to destination the last element of the array.
Definition at line 68 of file push_pop.c.
bool array_pop_back_n | ( | array_t * | self, |
void * | destination, | ||
size_t | count ) |
Moves to destination the n last elements of the array.
Destination can be NULL to just discard the elements.
Definition at line 53 of file push_pop.c.
bool array_pop_front | ( | array_t * | self, |
void * | destination ) |
Moves to destination
the first element of self
.
Definition at line 93 of file push_pop.c.
bool array_pop_front_n | ( | array_t * | self, |
void * | destination, | ||
size_t | count ) |
Moves to destination
the count
first elements of self
.
Definition at line 77 of file push_pop.c.
bool array_push_back | ( | array_t * | self, |
const void * | element ) |
Adds one element at the end of the array.
Definition at line 43 of file push_pop.c.
bool array_push_back_n | ( | array_t * | self, |
const void * | elements, | ||
size_t | count ) |
Adds count
elements at the end of the array.
Definition at line 28 of file push_pop.c.