21 lines
338 B
C
21 lines
338 B
C
|
#ifndef STREECMP_H
|
||
|
#define STREECMP_H
|
||
|
|
||
|
struct nodval {
|
||
|
int ival;
|
||
|
char cval;
|
||
|
};
|
||
|
|
||
|
struct nod {
|
||
|
struct nodval val;
|
||
|
int pool_size;
|
||
|
struct nod *pool;
|
||
|
};
|
||
|
|
||
|
struct nod *mknod(struct nod *prnt);
|
||
|
int mkstr(struct nod *rot, char *str);
|
||
|
int gentree(struct nod *rot, char *strs);
|
||
|
int streecmp(struct nod *rot, char *str);
|
||
|
|
||
|
#endif
|