SkillAgentSearch skills...

Salmagundi

A small, portable, linear probing hash map

Install / Use

/learn @e-dant/Salmagundi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Salmagundi

A small, portable, linear-probing hash map in C.

#include "salmagundi.h"
#include <string.h>
void do_stuff(void) {
  hm_t* map = hm_open(hm_hash_rapidhash, hm_cmp_str);
  char* k = "k";
  char* v = "v";
  hm_put(map, k, strlen(k), v, strlen(v));
  hm_item_t stored = hm_get(map, k, strlen(k));
  assert(memcmp(stored.k, k, strlen(k)) == 0);
  assert(memcmp(stored.v, v, strlen(v)) == 0);
  hm_close(map);
}

Related Skills

View on GitHub
GitHub Stars145
CategoryDevelopment
Updated1mo ago
Forks3

Languages

C

Security Score

95/100

Audited on Jan 30, 2026

No findings