macro LFDS710_HASH_A_GET_KEY_FROM_ELEMENT

From liblfds.org
Revision as of 21:04, 7 May 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_hash_addonly.h

Macro

#define LFDS710_HASH_A_GET_KEY_FROM_ELEMENT( hash_a_element )

Parameters

hash_a_element

A struct lfds710_hash_a_element. Not a pointer to it - the struct itself.

Return Value

Returns a void pointer, the key from the element.

Example

struct lfds710_hash_a_element
  haw;

void
  *key;

key = LFDS710_HASH_A_GET_KEY_FROM_ELEMENT( haw );

Notes

As with all liblfds macros, the macro operates on the structure itself, not a pointer to it.

See Also

Hash (add-only)