From c455e68e61946394f1e4078efeffc87c65dff921 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 10:06:08 -0400 Subject: Improved strlist: * Use strto*() functions instead of ato*() * Add _cmp and _copy functions * Removed compare functions * Replaced qsort call with strsort --- include/strlist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/strlist.h b/include/strlist.h index 4cf76c6..919bdc1 100644 --- a/include/strlist.h +++ b/include/strlist.h @@ -29,6 +29,7 @@ unsigned short strlist_item_as_ushort(StrList *pStrList, size_t index); short strlist_item_as_short(StrList *pStrList, size_t index); unsigned char strlist_item_as_uchar(StrList *pStrList, size_t index); char strlist_item_as_char(StrList *pStrList, size_t index); +unsigned char strlist_item_as_uchar(StrList *pStrList, size_t index); char *strlist_item_as_str(StrList *pStrList, size_t index); char *strlist_item(StrList *pStrList, size_t index); void strlist_set(StrList *pStrList, size_t index, char *value); @@ -37,6 +38,8 @@ void strlist_reverse(StrList *pStrList); void strlist_sort(StrList *pStrList, unsigned int mode); void strlist_append_strlist(StrList *pStrList1, StrList *pStrList2); void strlist_append(StrList *pStrList, char *str); +StrList *strlist_copy(StrList *pStrList); +int strlist_cmp(StrList *a, StrList *b); void strlist_free(StrList *pStrList); #endif //SPM_STRLIST_H -- cgit