uthash
« Back to VersTracker
Description:
C macros for hash tables and more
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c macros hash-table header-only embedded data-structures
Install: brew install uthash
About:
Uthash is a collection of ANSI C macros that provide hash table functionality without requiring external libraries. It allows developers to add, find, and delete items from hash tables using simple macro calls directly within their C source code. This header-only approach eliminates build dependencies and simplifies distribution for embedded systems and cross-platform applications.
Key Features:
  • Header-only library with no dependencies
  • ANSI C compatible (C89/C90)
  • Simple macro-based API for easy integration
  • Memory-efficient with automatic cleanup
Use Cases:
  • Implementing fast key-value lookups in embedded C applications
  • Adding associative arrays to legacy codebases without external dependencies
  • Creating symbol tables or caches in performance-critical systems
Alternatives:
  • GLib – GLib provides GHashTable but requires linking against a large external library
  • klib – klib offers similar header-only data structures with a focus on performance
Version History
Detected Version Rev Change Commit