function lfds710_list_aso_get_by_key

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

Source Files

└───liblfds710
    ├───inc
    │   └───liblfds710
    │           lfds710_list_addonly_singlylinked_ordered.h
    └───src
        └───llfds710_list_addonly_singlylinked_ordered
                lfds710_list_addonly_singlylinked_ordered_get.c

Opaque Structures

struct lfds710_list_aso_element;
struct lfds710_list_aso_state;

Prototype

int lfds710_list_aso_get_by_key( struct lfds710_list_aso_state *lasos,
                                 void *key,
                                 struct lfds710_list_aso_element **lasoe );

Parameters

struct lfds710_list_aso_state *lasos

A pointer to an initialized struct lfds710_list_aso_state.

void *key

A pointer to the key to find in the list.

struct lfds710_list_aso_element **lasoe

Set to point to the element containing key, or NULL if this key does not exist in the list.

Return Value

Returns 1 if an element with key is found, otherwise returns 0.

Notes

Iterates over the list, searching for the element with key key.

See Also