![]() |
STASIS
A pipeline delivery generator
|

Functions | |
| void | strlist_free (struct StrList **pStrList) |
| void | strlist_append (struct StrList **pStrList, char *str) |
| int | strlist_append_file (struct StrList *pStrList, char *_path, ReaderFn *readerFn) |
| int | strlist_contains (struct StrList *pStrList, const char *value, size_t *index_of) |
| void | strlist_append_strlist (struct StrList *pStrList1, struct StrList *pStrList2) |
| void | strlist_append_array (struct StrList *pStrList, char **arr) |
| int | strlist_append_tokenize (struct StrList *pStrList, char *str, char *delim) |
| int | strlist_append_tokenize_raw (struct StrList *pStrList, char *str, char *delim) |
| int | strlist_appendf (struct StrList **pStrList, const char *fmt,...) |
| struct StrList * | strlist_copy (struct StrList *pStrList) |
| void | strlist_remove (struct StrList *pStrList, size_t index) |
| int | strlist_cmp (struct StrList *a, struct StrList *b) |
| void | strlist_sort (struct StrList *pStrList, unsigned int mode) |
| void | strlist_reverse (struct StrList *pStrList) |
| size_t | strlist_count (struct StrList *pStrList) |
| void | strlist_set (struct StrList **pStrList, size_t index, char *value) |
| void | strlist_set_error (int flag) |
| const char * | strlist_get_error (int flag) |
| void | strlist_clear_error () |
| char * | strlist_item (struct StrList *pStrList, size_t index) |
| char * | strlist_item_as_str (struct StrList *pStrList, size_t index) |
| char | strlist_item_as_char (struct StrList *pStrList, size_t index) |
| unsigned char | strlist_item_as_uchar (struct StrList *pStrList, size_t index) |
| short | strlist_item_as_short (struct StrList *pStrList, size_t index) |
| unsigned short | strlist_item_as_ushort (struct StrList *pStrList, size_t index) |
| int | strlist_item_as_int (struct StrList *pStrList, size_t index) |
| unsigned int | strlist_item_as_uint (struct StrList *pStrList, size_t index) |
| long | strlist_item_as_long (struct StrList *pStrList, size_t index) |
| unsigned long | strlist_item_as_ulong (struct StrList *pStrList, size_t index) |
| long long | strlist_item_as_long_long (struct StrList *pStrList, size_t index) |
| unsigned long long | strlist_item_as_ulong_long (struct StrList *pStrList, size_t index) |
| float | strlist_item_as_float (struct StrList *pStrList, size_t index) |
| double | strlist_item_as_double (struct StrList *pStrList, size_t index) |
| long double | strlist_item_as_long_double (struct StrList *pStrList, size_t index) |
| struct StrList * | strlist_init () |
Variables | |
| const char * | strlist_error_msgs [] |
| int | strlist_errno = 0 |
String array convenience functions
| void strlist_append | ( | struct StrList ** | pStrList, |
| char * | str ) |
Append a value to the list
| pStrList | StrList |
| str |
| void strlist_append_array | ( | struct StrList * | pStrList, |
| char ** | arr ) |
Append the contents of an array of pointers to char
| pStrList | StrList |
| arr | NULL terminated array of strings |

| int strlist_append_file | ( | struct StrList * | pStrList, |
| char * | _path, | ||
| ReaderFn * | readerFn ) |
Append lines from a local file or remote URL (HTTP/s only)
| pStrList | |
| _path | file path or HTTP/s address |
| readerFn | pointer to a reader function (use NULL to retrieve all data) |

| int strlist_append_tokenize | ( | struct StrList * | pStrList, |
| char * | str, | ||
| char * | delim ) |
Append the contents of a newline delimited string
| pStrList | StrList |
| str | |
| delim |

| int strlist_append_tokenize_raw | ( | struct StrList * | pStrList, |
| char * | str, | ||
| char * | delim ) |
Append the contents of a newline delimited string without modifying the input str
| pStrList | StrList |
| str | |
| delim |

| int strlist_appendf | ( | struct StrList ** | pStrList, |
| const char * | fmt, | ||
| ... ) |
Append a formatted string Behavior is identical to asprintf-family of functions
| pStrList | StrList |
| fmt | printf format string |
| ... | format arguments |

| int strlist_contains | ( | struct StrList * | pStrList, |
| const char * | value, | ||
| size_t * | index_of ) |
Is value present in pStrList? The caller should test for success before using the value index_of
| pStrList | pointer to StrList |
| index_of | (result) index of string in pStrList, if found |
| value | string to search for in pStrList |

| size_t strlist_count | ( | struct StrList * | pStrList | ) |
| char * strlist_item | ( | struct StrList * | pStrList, |
| size_t | index ) |
| char strlist_item_as_char | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to char
| pStrList | |
| index |
char 
| double strlist_item_as_double | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to double
| pStrList | |
| index |
double 
| float strlist_item_as_float | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to float
| pStrList | |
| index |
float 
| int strlist_item_as_int | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to int
| pStrList | |
| index |
int 
| long strlist_item_as_long | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to long
| pStrList | |
| index |
long 
| long double strlist_item_as_long_double | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to long double
| pStrList | |
| index |
long double 
| long long strlist_item_as_long_long | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to long long
| pStrList | |
| index |
long long 
| short strlist_item_as_short | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to short
| pStrList | |
| index |
short 
| char * strlist_item_as_str | ( | struct StrList * | pStrList, |
| size_t | index ) |
Alias of strlist_item
| pStrList | |
| index |

| unsigned char strlist_item_as_uchar | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to unsigned char
| pStrList | |
| index |
unsigned char 
| unsigned int strlist_item_as_uint | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to unsigned int
| pStrList | |
| index |
unsigned int 
| unsigned long strlist_item_as_ulong | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to unsigned long
| pStrList | |
| index |
unsigned long 
| unsigned long long strlist_item_as_ulong_long | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to unsigned long long
| pStrList | |
| index |
unsigned long long 
| unsigned short strlist_item_as_ushort | ( | struct StrList * | pStrList, |
| size_t | index ) |
Convert value at index to unsigned short
| pStrList | |
| index |
unsigned short 
| void strlist_remove | ( | struct StrList * | pStrList, |
| size_t | index ) |
Remove a record by index from a StrList
| pStrList | |
| index |

| void strlist_reverse | ( | struct StrList * | pStrList | ) |
Reverse the order of a StrList
| pStrList |
| void strlist_set | ( | struct StrList ** | pStrList, |
| size_t | index, | ||
| char * | value ) |
Set value at index
| pStrList | |
| index | pStrlist->data[index] to set |
| value | string |

| void strlist_sort | ( | struct StrList * | pStrList, |
| unsigned int | mode ) |
Sort a StrList by mode
| pStrList | |
| mode | Available modes: STRLIST_DEFAULT (alphabetic), STRLIST_ASC (ascending), STRLIST_DSC (descending) |

| const char* strlist_error_msgs[] |