Created a list structure for strings. Should work for splitting lines of text up just before they're tokenized.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef LIST_H
|
||||
#define LIST_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define LISTDEFAULTSIZE 4
|
||||
|
||||
typedef struct {
|
||||
char** root;
|
||||
int size;
|
||||
int capacity;
|
||||
} List;
|
||||
|
||||
List* CreateList(void);
|
||||
int AddListItem(char *, List *);
|
||||
void PrintList(List*);
|
||||
void DestroyList(List*);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user