aboutsummaryrefslogtreecommitdiff
path: root/sort.h
blob: 264e9059b6e4158bf568206809988112351b18c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
void vec_free(vec *v);
static int qsort_strcmp(const void *p1, const void *p2);

#endif