aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-04-28 14:27:31 -0400
committerGitHub <noreply@github.com>2020-04-28 14:27:31 -0400
commitbdd8485de4cde8dba67b27146feda5fd821cd7ef (patch)
tree1f87a54f617b7054c2bb7b66e4e30488c40268f4 /include
parent338abde356efcae6cf0a000b71b781d21c8733b6 (diff)
parent428849beb3be85cf69f3ca3029d330ee2f2d842f (diff)
downloadspmc-bdd8485de4cde8dba67b27146feda5fd821cd7ef.tar.gz
Merge pull request #31 from jhunkeler/strlist-helpers
Strlist helpers
Diffstat (limited to 'include')
-rw-r--r--include/strlist.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/strlist.h b/include/strlist.h
index 4cf76c6..e236473 100644
--- a/include/strlist.h
+++ b/include/strlist.h
@@ -11,10 +11,6 @@ typedef struct {
char **data;
} StrList;
-#define STRLIST_DEFAULT 1 << 0
-#define STRLIST_ASC 1 << 1
-#define STRLIST_DSC 1 << 2
-
StrList *strlist_init();
long double strlist_item_as_long_double(StrList *pStrList, size_t index);
double strlist_item_as_double(StrList *pStrList, size_t index);
@@ -29,6 +25,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 +34,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