openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nss-pam-ldapd/0.9.8-r0/nss-pam-ldapd-0.9.8/nslcd/nsswitch.c
static const char* find_db(const char* line, const char* db)
{
    int i;
    i = strlen(db);
    /* the line should begin with the db we're looking for */
    if (strncmp(line, db, i) != 0)
        return NULL;
    /* followed by a : */
    while (isspace(line[i]))
        i++;
    if (line[i] != ':')
        return NULL;
    i++;
    while (isspace(line[i]))
        i++;
    return line + i;
}
/* see if the line is a service definition for db and return a pointer to
   the beginning of the services list if it is */
see if the line is a service definition for db and return a pointer to
the beginning of the services list if it is
see if the line is a service definition for db and return a pointer to the beginning of the services list if it is
static const char* find_db(const char* line, const char* db)
{
    int i;
    i = strlen(db);
    if (strncmp(line, db, i) != 0)
        return NULL;
    while (isspace(line[i]))
        i++;
    if (line[i] != ':')
        return NULL;
    i++;
    while (isspace(line[i]))
        i++;
    return line + i;
}
static const char * find_db ( const char * line , const char * db ) { int i ; i = strlen ( db ) ; if ( strncmp ( line , db , i ) != 0 ) return NULL ; while ( isspace ( line [ i ] ) ) i ++ ; if ( line [ i ] != ' ' ) return NULL ; i ++ ; while ( isspace ( line [ i ] ) ) i ++ ; return line + i ; }
see if the line is a service definition for db and return a pointer to
the beginning of the services list if it is
see if the line is a service definition for db and return a pointer to the beginning of the services list if it is
/* the line should begin with the db we're looking for */ /* followed by a : */