libSystem Reference Manual: Hash

## Hash Hash |

## Functions

int | (*HashCompare) ()
void | (*HashForeach) ()
Hash * | hash_new ()
void | hash_delete ()
unsigned int | hash_func_string ()
int | hash_compare_string ()
void * | hash_get ()
int | hash_set ()
size_t | hash_count ()
void | hash_foreach ()
int | hash_reset ()

## Types and Values

| Hash

## Description

## Functions

### HashCompare ()

    int
    (*HashCompare) (void const *value1,
                    void const *value2);

#### Returns

### HashForeach ()

    void
    (*HashForeach) (void const *key,
                    void *value,
                    void *data);

### hash_new ()

    Hash *
    hash_new (HashFunc func,
              HashCompare compare);

#### Returns

### hash_delete ()

    void
    hash_delete (Hash *h);

### hash_func_string ()

    unsigned int
    hash_func_string (void const *value);

#### Returns

### hash_compare_string ()

    int
    hash_compare_string (void const *value1,
                         void const *value2);

#### Returns

### hash_get ()

    void *
    hash_get (Hash *h,
              void const *key);

#### Returns

### hash_set ()

    int
    hash_set (Hash *h,
              void const *key,
              void *value);

#### Returns

### hash_count ()

    size_t
    hash_count (Hash *hash);

#### Returns

### hash_foreach ()

    void
    hash_foreach (Hash *hash,
                  HashForeach func,
                  void *data);

### hash_reset ()

    int
    hash_reset (Hash *hash);

#### Returns

## Types and Values

### Hash

    typedef struct _Hash Hash;