string_list.h

Sun, 16 Oct 2011 12:20:52 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 16 Oct 2011 12:20:52 +0200
changeset 19
8bac9fd0629d
parent 17
suffix_list.h@5f43f733cc12
child 20
43725438ac50
permissions
-rw-r--r--

generalized suffix_list to string_list

/*
 * string_list.h
 *
 *  Created on: 15.09.2011
 *      Author: beckermi
 */

#ifndef STRING_LIST_H_
#define STRING_LIST_H_

#include "stdinc.h"

typedef struct _string_list {
  int count;
  char** items;
} string_list_t;

#ifdef _cplusplus
extern "C" {
#endif

string_list_t* new_string_list_t();
void destroy_string_list_t(string_list_t*);
void add_string(string_list_t*, char*);

#ifdef _cplusplus
}
#endif

#endif /* STRING_LIST_H_ */

mercurial