mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-10 20:40:48 +05:00
17 lines
367 B
C
17 lines
367 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
#include <ctype.h>
|
||
|
|
||
|
typedef struct cptr
|
||
|
{
|
||
|
char chr;
|
||
|
struct cptr *leaf,*next;
|
||
|
} cptr;
|
||
|
|
||
|
void CharTreeDestroy(cptr *p);
|
||
|
bool CharTreeAddStr(cptr **pp,const char *s);
|
||
|
bool CharTreeAddStrLower(cptr **pp,const char *s);
|
||
|
bool CharTreeCheckStr(cptr *p,const char *s);
|
||
|
bool CharTreeCheckStrLower(cptr *pp,const char *s);
|