libhashish SVN
Status: Beta
Brought to you by:
hgndgtl
| File | Date | Author | Commit |
|---|---|---|---|
| analysis | 2008-11-14 | hgndgtl | [r160] add sepearate time benchmark directory for cryp... |
| doc | 2008-04-25 | hgndgtl | [r145] remove duplicate make target (distclean) |
| include | 2008-11-14 | hgndgtl | [r157] add SKEIN 256 |
| lib | 2008-11-14 | hgndgtl | [r158] add header dependency for memcpy declaration |
| localhash | 2008-04-07 | fw_strlen | [r142] fixed some install error (library links) |
| man | 2008-02-22 | hgndgtl | [r105] reworked bloom interface and internal handling |
| tests | 2008-10-20 | fw_strlen | [r153] remove list.h and use simple single-linked list. |
| CHANGELOG | 2007-08-22 | hgndgtl | [r12] o add mutex testcase to check for concurrent pr... |
| LICENSE | 2007-05-09 | hgndgtl | [r1] |
| Makefile | 2008-02-03 | hgndgtl | [r92] Add test target to Makefile |
| README | 2007-05-09 | hgndgtl | [r1] |
| configure | 2008-10-20 | fw_strlen | [r154] add --disable-rbtree config option. |
LibHashIsh README
==============================================================================
Hagen Paul Pfeifer <hagen@jauu.net>
Content:
1. Installation
2. Fast Usage
3. LibHashIsh Options
1. Installation
------------------------------------------------------------------------------
./configure
make
make test
su
make install
2. Fast Usage
------------------------------------------------------------------------------
The following example demonstrate a really trivial but good example how
to use libhashish. The are really a bunch of other usages, but for the normal
case this standard call is sufficing:
,-----:: test.c ::
|
| #include <libhashish.h>
|
| int main(void) {
| hi_handle_t *hi_handle;
| char *key = "23";
| char *data = "data element";
| char *data_ptr;
|
| hi_init_str(&hi_handle, TABLE_SIZE);
|
| ret = hi_insert_str(hi_handle, key, data);
|
| hi_get_str(hi_handle, key, &data_ptr);
|
| fprintf(stdout, "Key: %s Data: %s\n", key, data_ptr);
|
| hi_fini(hi_handle);
|
| return 0;
| }
|
`--------------
Compile with gcc:
gcc -Wall -c -o test.o test.c
gcc -Wall test.o -lm -lhashish -o test
3. LibHashIsh Options
------------------------------------------------------------------------------
See Doxygen documentation or use the source (should[tm] be good commented).