streecmp/streecmp.h

25 lines
428 B
C

#ifndef STREECMP_H
#define STREECMP_H
#define POOL_SIZE 256
struct nodval {
int ival;
char cval;
};
struct nod {
struct nodval val;
int pool_size;
struct nod **pool;
};
void frenod(struct nod *nod);
struct nod *allocnod(void);
struct nod *mknod(struct nod *nod, int loc);
int mkstr(struct nod *nod, char *str);
int gentree(struct nod *nod, char *strs);
int streecmp(struct nod *nod, char *str);
#endif