This module contains functions and structures related to sld_list objects.
Adds an object to a sld_list.
- Parameters
-
list | an initialized sld_list |
object | an arbitrary object |
- Returns
- Success or failure
- Examples:
- list.c.
Removes an object from a sld_list at the specified index.
- Parameters
-
list | an initialized sld_list |
index | an index where an object resides within the sld_list |
void sld_list_free |
( |
struct sld_list * |
list | ) |
|
|
related |
Frees any memory allocated for an initialized sld_list.
- Parameters
-
- Examples:
- list.c.
Returns an object from an sld_list at index.
- Parameters
-
list | an initialized sld_list |
index | an index where an object resides within the sld_list |
- Returns
- The object residing at the specified index
- Examples:
- list.c.
Initializes a sld_list.
- Parameters
-
- Returns
- Success or failure
- Examples:
- list.c.
void * sld_list_pop |
( |
struct sld_list * |
list | ) |
|
|
related |
Returns and removes the last object in a sld_list.
- Parameters
-
- Returns
- The last object in the passed sld_list
- Examples:
- list.c.