diff options
Diffstat (limited to 'sort.h')
-rw-r--r-- | sort.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#ifndef __SORT_H +#define __SORT_H + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#define VEC_SIZE 64 +#define BUF_SIZE 64 + +typedef struct { + unsigned long count, size; + char **data; +} vec; + +char *read_line(FILE* stream); +vec *vec_init(void); +void vec_add(vec *v, char *s); +static int qsort_strcmp(const void *p1, const void *p2); + +#endif + |