Registry / utility / uthash

uthash

JSON →
library2.3.0vcpkgunverified

A set of C macros for implementing hash tables and other data structures.

vcpkg install uthash
INSTALL
IMPORT
SIG · UTHASH
U
uthash
utilitycppv2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

uthash.h
#include <uthash.h>

Creates a hash table mapping integer IDs to structures

#include <uthash.h> #include <string.h> struct my_struct { int id; char name[10]; UT_hash_handle hh; }; int main() { struct my_struct *users = NULL; struct my_struct *s = malloc(sizeof(*s)); s->id = 1; strcpy(s->name, "test"); HASH_ADD_INT(users, id, s); return 0; }
Debug
Known issues
gotchaHeader-only but requires careful memory management
fix
Always use HASH_DEL before freeing entries
affects: *
Upgrade
Version history
2.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

uthash — pip install uthash · libregistry