lib/simap.c
/* Searches 'simap' for a mapping with the given 'name'.  Returns the
 * associated data value, if found, otherwise zero. */
Searches 'simap' for a mapping with the given 'name'.  Returns the
associated data value, if found, otherwise zero.
Searches ' simap ' for a mapping with the given ' name ' . Returns the associated data value if found otherwise zero .
unsigned int
simap_get(const struct simap *simap, const char *name)
{
    struct simap_node *node = simap_find(simap, name);
    return node ? node->data : 0;
}
unsigned int simap_get ( const struct simap * simap , const char * name ) { struct simap_node * node = simap_find ( simap , name ) ; return node ? node -> data : 0 ; }
Searches 'simap' for a mapping with the given 'name'.
Searches ' simap ' for a mapping with the given ' name ' .