Thu, 06 Oct 2011 00:06:30 +0200
fixed suffixList realloc bug + added destroy_suffix_list_t
/* * suffix_list.h * * Created on: 15.09.2011 * Author: beckermi */ #ifndef SUFFIX_LIST_H_ #define SUFFIX_LIST_H_ #include "stdinc.h" typedef struct _suffix_list { int count; char** items; } suffix_list_t; #ifdef _cplusplus extern "C" { #endif suffix_list_t* new_suffix_list_t(); void destroy_suffix_list_t(suffix_list_t*); void add_suffix(suffix_list_t*, char*); #ifdef _cplusplus } #endif #endif /* SUFFIX_LIST_H_ */