Linux SoftwareProgrammingLibrarieshash.c 2

hash.c 2


hash.c is a C hash table with quadratic probing
Developer:   David Crawshaw
      more software by author →
Price:  0.00
License:   BSD License
File size:   4K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


hash.c is a C hash table with quadratic probing. hash.c is very small and easy to use.

Compile: gcc -c hash.c

This hashtable uses C-strings for keys and quadratic probing instead of linked-list chains. It depends only on ANSI C and so should work anywhere.

API

hash * hash_new ( unsigned int size ) Create new hashtable.
void hash_destroy ( hash *h ) Free hashtable.
int hash_add ( hash *h , const char *key , void *value ) Add key/value pair.
void * hash_get ( hash *h , const char *key ) Return value matching given key.
void * hash_remove ( hash *h , const char *key ) Remove key from table, returing value.
unsigned int hash_size ( hash *h ) Returns total number of keys.

What's New in This Release:
  • This release uses exponentiation instead of xor in hashing.
  • It adds a hash_destroy function.
    tags const char  char *key  this release  int hash  unsigned int  hash destroy  quadratic probing  

    Download hash.c 2


     http://www.zentus.com/c/hash.c


    Authors software

    zeMail 1.0 (by David Crawshaw)
    zeMail is a minimalist webmail package written in Mason

    JDBC Driver for SQLite 006 (by David Crawshaw)
    JDBC Driver for SQLite is a thin layer on top of the SQLite 3.3.x C API

    SQLiteJDBC 030 (by David Crawshaw)
    SQLiteJDBC is a JDBC driver for SQLite which is written as a Java JNI layer over the SQLite 3.3.x API.

    SQLiteJDBC supports the mos

    hash.c 2 (by David Crawshaw)
    hash.c is a C hash table with quadratic probing


    Similar software

    hash.c 2 (by David Crawshaw)
    hash.c is a C hash table with quadratic probing

    hashit 0.9.4 (by Pleyades Crew)
    hashit is a generic hash library.

    hashit implements diverse collision handling methods.

    This function creates a hash table whic

    Generic Hash Table library 0.6.1 (by Simon Kagstrom)
    Generic Hash Table library is a hash table implementation in C for storing arbitrary types of data

    uthash 1.2 (by Troy D. Hanson)
    uthash is a hash for C structures, allowing any C structure having a unique key field to be hashed.

    Structures can be deleted, add

    DBD::ADO::Const 2.95 (by Steffen Goeldner)
    DBD::ADO::Const is a Perl module for ADO Constants.

    SYNOPSIS

    use DBD::ADO::Const();

    $ = "n";

    my $Enums = DBD::ADO::

    XFA 0.17 (by Davide Libenzi)

    drs-hash 1.0 (by Dan Stromberg)

    genproto 0.4.1 (by Freek)
    genproto generates prototypes from C/C++ code

    C Algorithms Library 1.0.0 (by Simon Howard)
    C Algorithms Library is a collection of commonly used Computer Science algorithms.

    The focus is on code that is well documented an

    Hash generator 0.3 (by Mola Pahnadayan)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags