function lfds700_list_aos_get_by_key

From liblfds.org
Revision as of 01:53, 30 December 2015 by Admin (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

└───liblfds700
    ├───inc
    │   └───liblfds700
    │           lfds700_list_addonly_ordered_singlylinked.h
    └───src
        └───llfds700_list_addonly_ordered_singlylinked
                lfds700_list_addonly_ordered_singlylinked_get.c

Opaque Structures

struct lfds700_list_aos_element;
struct lfds700_list_aos_state;

Prototype

int lfds700_list_aos_get_by_key( struct lfds700_list_aos_state *laoss,
                                 void *key,
                                 struct lfds700_list_aos_element **laose );

Parameters

struct lfds700_list_aos_state *laoss

A pointer to an initialized struct lfds700_list_aos_state.

void *key

A pointer to the key to find in the list.

struct lfds700_list_aos_element **laose

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.

Example

Coming soon. No, really! (Written 29th Dec 2015).

See Also