Skip to content
 
 

Latest commit

 

History

361 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status GitHub CI status

Documentation for uthash is available at:

https://troydhanson.github.io/uthash/

uthash:为 C 语言提供哈希表的库。由于 C 语言中没有类似字典的数据结构,该库提供了哈希表常见的查询、插入、删除、排序等函数。使用方法简单,仅需引入一个头文件

#include "uthash.h"

struct my_struct { int id; /* we'll use this field as the key / char name[10]; UT_hash_handle hh; / makes this structure hashable */ };

struct my_struct *users = NULL;

void add_user(struct my_struct *s) { HASH_ADD_INT( users, id, s ); }

About

C macros for hash tables and more

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages