ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

unsigned char* hash_lookup ( struct hash_table table,
unsigned char name,
int  len 
)

Definition at line 144 of file hash.c.

Referenced by _bdf_add_property(), bdf_create_property(), bdf_get_font_property(), and bdf_get_property().

{
    int hashno;
    struct hash_bucket *bp;

    if (!table)
        return (unsigned char *)0;

    if (!len)
        len = strlen ((char *)name);

    hashno = do_hash (name, len, table -> hash_count);

    for (bp = table -> buckets [hashno]; bp; bp = bp -> next) {
        if (len == bp -> len && !memcmp (bp -> name, name, len))
            return bp -> value;
    }
    return (unsigned char *)0;
}

Generated on Sun May 27 2012 04:58:05 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.