Will someone please help me? hash library?

This is a discussion on Will someone please help me? hash library? within the C Programming forums, part of the General Programming Boards category; does anyone have a 'hash library' that they could share? I need one of the functions to do this:: Code: ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Will someone please help me? hash library?

    does anyone have a 'hash library' that they could share?

    I need one of the functions to do this::

    Code:
    void *hash_table_create(int data_size, unsigned int (*hash)(void *key, int tablesize), bool (*compare_keys)(void *key1, void *key2));
    Creates a record for a hash table,
    initializes the hash table,
    returns a pointer to the record as a void *.
    data_size is used to calculate the size of the hash table ::: I need it to be able to tell the difference between separate chaining and quad. probing. if its separate chaining then it has to be the first prime number greater than "data_size". If its quad. probing then it needs to be one less then the first power of 2 greater than data_size.


    Please please please help

  2. #2
    Registered User
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    14
    You should not ask, do you have / can you give / can you do for me etc, questions here. Adding please x1000000 in your message wont help you getting more helpers or "ready codes" given you.

    Question should go:
    I want to do x thing.
    I have readed it could be done "this way".
    This is what i have tried to do that.
    Can anyone advice me how to do x thing because im stuck with it. etc...

    Something like that, people will or at least me is seeing red when reading post that smells little bit too much for homework, or question asked in a way that someone would give something ready right away for you.

    So back to your question. You want to do hash table right?
    What is your OS?
    Linux or Windows?
    I personally dont know much about Windows how to do that with library, but in Linux you can do a hash table with Glib: http://library.gnome.org/devel/glib/...sh-Tables.html

  3. #3
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    I'm so bored ~sighs~ i agree with the guy above , lol , he's got all the points!
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  4. #4
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    One please is for being polite. Two is for being eager. Three are just too much. Four is asking to be made fun of. Five, you deserve a slap. Six, keep slapping. More, Master5001 comes and gives you some trap links.
    So, you had three. Not too bad.
    Here is where you should ask

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,989
    Uh, no sorry. I'm pretty sure that most of us don't speak or read whatever language that was in.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with unaligned intrinsics
    By The Wazaa in forum C++ Programming
    Replies: 4
    Last Post: 02-18-2009, 12:36 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 07:04 AM
  3. Group Project Help/Volunteer
    By DarkDot in forum C++ Programming
    Replies: 3
    Last Post: 04-25-2007, 12:36 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. Not sure on hash table memory allocations
    By Thumper333 in forum C Programming
    Replies: 3
    Last Post: 09-27-2004, 10:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21