aboutsummaryrefslogtreecommitdiff
path: root/include/strlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/strlist.h')
-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