A
Andre Majorel
The data is a bunch of (key, value) pairs. The key is a
NUL-terminated string, the value is a struct. I need to :
a) create/update any element by key in log(N) time or less,
b) get all (key, value) pairs, not necessarily in order.
I'm looking for some code to do that. Hash table, B-tree,
whatever as long as it's :
a) available under the terms of a very liberal licence as it
will be used in closed-source software,
b) compact (one .c, one .h and no dependencies on any kind of
config.h),
c) mature ; if I had the time to debug it, I would roll my
own.
Any recommendations ? Thanks in advance.
NUL-terminated string, the value is a struct. I need to :
a) create/update any element by key in log(N) time or less,
b) get all (key, value) pairs, not necessarily in order.
I'm looking for some code to do that. Hash table, B-tree,
whatever as long as it's :
a) available under the terms of a very liberal licence as it
will be used in closed-source software,
b) compact (one .c, one .h and no dependencies on any kind of
config.h),
c) mature ; if I had the time to debug it, I would roll my
own.
Any recommendations ? Thanks in advance.