streecmp/streecmp.h

27 lines
525 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-27 16:59:30 +00:00
#define DEF_DELIM "\n"
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 val);
2024-08-27 16:59:30 +00:00
int gentree(struct nod *nod, char *strs, char *delim);
int streecmp(struct nod *nod, char *str);
2024-09-02 19:29:29 +00:00
int streencmp(struct nod *nod, char *str, int len);
2024-08-25 12:04:27 +00:00
#endif