Thu, 06 Oct 2011 00:06:30 +0200
fixed suffixList realloc bug + added destroy_suffix_list_t
1 /*
2 * suffix_list.h
3 *
4 * Created on: 15.09.2011
5 * Author: beckermi
6 */
8 #ifndef SUFFIX_LIST_H_
9 #define SUFFIX_LIST_H_
11 #include "stdinc.h"
13 typedef struct _suffix_list {
14 int count;
15 char** items;
16 } suffix_list_t;
18 #ifdef _cplusplus
19 extern "C" {
20 #endif
22 suffix_list_t* new_suffix_list_t();
23 void destroy_suffix_list_t(suffix_list_t*);
24 void add_suffix(suffix_list_t*, char*);
26 #ifdef _cplusplus
27 }
28 #endif
30 #endif /* SUFFIX_LIST_H_ */