Some methods return lists (heterogeneous arrayts of data), these routines make it easier to manipulate listse.
More...
Some methods return lists (heterogeneous arrayts of data), these routines make it easier to manipulate listse.
Add a list item to a list and return index to the added item.
- Parameters
-
[in] | list | The list to store the item in |
[in] | item | The list item to store in the list |
- Returns
- The index to where the list item was added
Create a list item to store a double value.
- Parameters
-
[in] | value | The double to store in the list item |
- Returns
- A pointer to the list item
Create a list item to store an integer.
- Parameters
-
[in] | value | The integer to store in the list item |
- Returns
- A pointer to the list item
Create a list item to store a list.
- Parameters
-
[in] | value | The list to store in the list item |
- Returns
- A pointer to the list item
Create a new list.
A list is a container for storing list items. List items can represent integers, double, strings and lists. To populate a list, create list items of the appropriate type and add them to the list
Example, build the list [123, [3.1415926]]
printf ("item = %d\n", item->data.iValue);
- Returns
- Returns null if fails, otherwise returns a pointer to a new list structure
Create a list item to store a pointer to a char*.
- Parameters
-
[in] | value | The string to store in the list item |
- Returns
- A pointer to the list item
Returns the double from a list item.
- Parameters
-
[in] | item | The list item to work with |
[out] | value | The double value returned by the method |
- Returns
- Returns true is successful, else false
Returns the integer from a list item.
- Parameters
-
[in] | item | The list item to work with |
[out] | value | The integer value returned by the method |
- Returns
- Returns true is successful, else false
Returns a list from a list item if it contains a list.
- Parameters
-
[in] | item | The list item to retrieve the list type from |
- Returns
- Returns NULL if item isn't a list, otherwise it returns a list from the item
Returns the index^th item from the list.
- Parameters
-
[in] | list | The list to retrieve the list item from |
[in] | index | The index list item we are interested in |
- Returns
- A pointer to the retrieved list item
Returns the length of a given list.
- Parameters
-
[in] | myList | The list to retrieve the length from |
- Returns
- Length of list
Returns the string from a list item.
- Parameters
-
[in] | item | The list item to work with |
- Returns
- Returns NULL if it fails, otherwise returns a pointer to the string
Returns true or false if the list item is the given itemType.
- Parameters
-
[in] | item | The list |
[in] | itemType | The list item type to check for |
- Returns
- If true, then the list item holds a list
Returns true or false if the list item is a double.
- Parameters
-
- Returns
- If true, then the list item holds a double
Returns true or false if the list item is an integer.
- Parameters
-
- Returns
- If true, then the list item holds an integer
Returns true or false if the list item is a list itself.
- Parameters
-
- Returns
- If true, then the list item holds a list
Returns true or false if the list item is a character array.
- Parameters
-
- Returns
- If true, then the list item holds an characeter array