Add functions and int vars

This commit is contained in:
Such Meme, Many Skill
2020-03-31 14:24:34 +02:00
parent 33a64abfb0
commit 38f349618f
8 changed files with 250 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include "../../utils/types.h"
typedef struct _dict_str_int {
char *key;
int value;
struct _dict_str_int *next;
} dict_str_int;
typedef struct _dict_str_str {
char *key;
char *value;
struct _dict_str_str *next;
} dict_str_str;
typedef struct _dict_str_loc {
char *key;
u64 value;
struct _dict_str_loc *next;
} dict_str_loc;
int str_int_add(char *key, int value);
int str_int_find(char *key, int *out);
void str_int_clear();
void str_int_printall();