diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-03-07 16:44:29 -0500 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-03-07 16:44:29 -0500 |
commit | 3895150d7636f906fa261df5c439e10851a3b54c (patch) | |
tree | 2d24191f43f6e9968b34e71889cbcf79d187717d /src/include | |
parent | 925c4fa86368f019c683be18a641b660a42d06e5 (diff) |
Added hashmaps, now need to add lists
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/keytab.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/keytab.h b/src/include/keytab.h index e69de29..f3b8910 100644 --- a/src/include/keytab.h +++ b/src/include/keytab.h @@ -0,0 +1,23 @@ +#ifndef KEYTAB_H +#define KEYTAB_H + +#define TABLEN 1024 + +union value { + char *str; + double num; + unsigned int b : 1; +}; + +struct keytab { + char *key; + int flag; + union value v; +}; + +int *getkeys(struct keytab *tab); +struct keytab getkey(struct keytab *tab, char *key); +void setkey(struct keytab *tab, char *pair); +void delkey(struct keytab *tab, char *key); + +#endif |