openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/misc-utils/look.c
static char* linear_search(char* front, char* back)
{
    while (front < back)
    {
        switch (compare(front, back))
        {
            case EQUAL: /* Found it. */
                return (front);
            case LESS: /* No such string. */
                return (NULL);
            case GREATER: /* Keep going. */
                break;
        }
        SKIP_PAST_NEWLINE(front, back);
    }
    return (NULL);
}
/*
 * Find the first line that starts with string, linearly searching from front
 * to back.
 *
 * Return NULL for no such line.
 *
 * This routine assumes:
 *
 * 	o front points at the first character in a line.
 *	o front is before or at the first line to be printed.
 */
Find the first line that starts with string, linearly searching from front
to back.

Return NULL for no such line.

This routine assumes.

o front points at the first character in a line.
o front is before or at the first line to be printed.
Find the first line that starts with string linearly searching from front to back . Return NULL for no such line . This routine assumes . o front points at the first character in a line . o front is before or at the first line to be printed .
static char* linear_search(char* front, char* back)
{
    while (front < back)
    {
        switch (compare(front, back))
        {
            case EQUAL: 
                return (front);
            case LESS: 
                return (NULL);
            case GREATER: 
                break;
        }
        SKIP_PAST_NEWLINE(front, back);
    }
    return (NULL);
}
static char * linear_search ( char * front , char * back ) { while ( front < back ) { switch ( compare ( front , back ) ) { case EQUAL : return ( front ) ; case LESS : return ( NULL ) ; case GREATER : break ; } SKIP_PAST_NEWLINE ( front , back ) ; } return ( NULL ) ; }
Find the first line that starts with string, linearly searching from front
 to back.
Find the first line that starts with string linearly searching from front to back .
/* Found it. */ /* No such string. */ /* Keep going. */