openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/base-passwd/3.5.29-r0/base-passwd-3.5.29/update-passwd.c
struct _node* find_by_named_entry(struct _node* head, const struct _node* entry)
{
    while (head)
    {
        if (strcmp(entry->name, head->name) == 0)
            return head;
        head = head->next;
    }

    return NULL;
}
/* Look for an entry in a list, using the name of _entry as the
 * searchkey.
 */
Look for an entry in a list, using the name of _entry as the
searchkey.
Look for an entry in a list using the name of _entry as the searchkey .
struct _node* find_by_named_entry(struct _node* head, const struct _node* entry)
{
    while (head)
    {
        if (strcmp(entry->name, head->name) == 0)
            return head;
        head = head->next;
    }
    return NULL;
}
struct _node * find_by_named_entry ( struct _node * head , const struct _node * entry ) { while ( head ) { if ( strcmp ( entry -> name , head -> name ) == 0 ) return head ; head = head -> next ; } return NULL ; }
Look for an entry in a list, using the name of _entry as the
 searchkey.
Look for an entry in a list using the name of _entry as the searchkey .