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_name(struct _node* head, const char* name)
{
    while (head)
    {
        if (strcmp(name, head->name) == 0)
            return head;
        head = head->next;
    }

    return NULL;
}
/* Locate an entry with a specific name in the list
 */
Locate an entry with a specific name in the list
Locate an entry with a specific name in the list
struct _node* find_by_name(struct _node* head, const char* name)
{
    while (head)
    {
        if (strcmp(name, head->name) == 0)
            return head;
        head = head->next;
    }
    return NULL;
}
struct _node * find_by_name ( struct _node * head , const char * name ) { while ( head ) { if ( strcmp ( name , head -> name ) == 0 ) return head ; head = head -> next ; } return NULL ; }
Locate an entry with a specific name in the list
Locate an entry with a specific name in the list