aboutsummaryrefslogtreecommitdiff
path: root/include/strlist.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-05-26 14:43:00 -0400
committerGitHub <noreply@github.com>2020-05-26 14:43:00 -0400
commitdf0686fb8b6fefebda0548d39caad2622e2bce89 (patch)
treecbd2d92667a0ab45221a220948f6ee33b2926a1c /include/strlist.h
parentc205840e737b23614a686a9675b896106cee5c64 (diff)
parent065d39bff58c02719abf5a710b22d8355ff1b19d (diff)
downloadspmc-df0686fb8b6fefebda0548d39caad2622e2bce89.tar.gz
Merge pull request #38 from jhunkeler/from-file
From file
Diffstat (limited to 'include/strlist.h')
-rw-r--r--include/strlist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/strlist.h b/include/strlist.h
index 76b6d5f..55a784f 100644
--- a/include/strlist.h
+++ b/include/strlist.h
@@ -4,6 +4,7 @@
*/
#ifndef SPM_STRLIST_H
#define SPM_STRLIST_H
+#include "metadata.h"
typedef struct {
size_t num_alloc;
@@ -26,13 +27,13 @@ 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);
size_t strlist_count(StrList *pStrList);
void strlist_reverse(StrList *pStrList);
void strlist_sort(StrList *pStrList, unsigned int mode);
+int strlist_append_file(StrList *pStrList, char *path, ReaderFn *readerFn);
void strlist_append_strlist(StrList *pStrList1, StrList *pStrList2);
void strlist_append(StrList *pStrList, char *str);
StrList *strlist_copy(StrList *pStrList);