kerep/src/Hashtable/KeyValuePair.h
2022-07-17 17:05:10 +03:00

27 lines
385 B
C

#pragma once
#if __cplusplus
extern "C" {
#endif
#include "../base/base.h"
#include "../Autoarr/Autoarr.h"
typedef struct KVPair{
char* key;
Unitype value;
} KVPair;
Autoarr_declare(KVPair)
// proper way to clear a KVP
void KVPair_free(KVPair p);
// func to clear KVP array
void Autoarr_free_KVPair(Autoarr_KVPair* ar);
void printkvp(KVPair p);
#if __cplusplus
}
#endif