26 lines
464 B
C
26 lines
464 B
C
#ifndef STREECMP_H
|
|
#define STREECMP_H
|
|
|
|
#define POOL_SIZE 256
|
|
#define DEF_DELIM "\n"
|
|
|
|
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, char *delim);
|
|
int streecmp(struct nod *nod, char *str);
|
|
|
|
#endif
|