streecmp/streecmp.h

25 lines
428 B
C
Raw Normal View History

2024-08-25 12:04:27 +00:00
#ifndef STREECMP_H
#define STREECMP_H
#define POOL_SIZE 256
2024-08-25 12:04:27 +00:00
struct nodval {
int ival;
char cval;
};
struct nod {
struct nodval val;
int pool_size;
struct nod **pool;
2024-08-25 12:04:27 +00:00
};
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);
2024-08-25 12:04:27 +00:00
#endif