Go to the source code of this file.
|
void | array_set (t_array *array, size_t index, const void *content) |
| Replaces the element at the specified position in this array with a copy of the specified element. More...
|
|
◆ array_set()
void array_set |
( |
t_array * |
array, |
|
|
size_t |
index, |
|
|
const void * |
content |
|
) |
| |
Replaces the element at the specified position in this array with a copy of the specified element.
- Parameters
-
index | The index (0-based counting) |
content | The item to be copied. |
- Exceptions
-
ENOMEM | Memory allocation error |
EINVAL | Index is out of range |
Definition at line 16 of file array_set.c.