openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libpam/1.3.1-r0/Linux-PAM-1.3.1/modules/pam_cracklib/pam_cracklib.c
static int distdifferent(const char* old, const char* new, size_t i, size_t j)
{
    char c, d;

    if ((i == 0) || (strlen(old) < i))
    {
        c = 0;
    }
    else
    {
        c = old[i - 1];
    }
    if ((j == 0) || (strlen(new) < j))
    {
        d = 0;
    }
    else
    {
        d = new[j - 1];
    }
    return (c != d);
}
/*
 * Calculate how different two strings are in terms of the number of
 * character removals, additions, and changes needed to go from one to
 * the other
 */
Calculate how different two strings are in terms of the number of
character removals, additions, and changes needed to go from one to
the other
Calculate how different two strings are in terms of the number of character removals additions and changes needed to go from one to the other
static int distdifferent(const char* old, const char* new, size_t i, size_t j)
{
    char c, d;
    if ((i == 0) || (strlen(old) < i))
    {
        c = 0;
    }
    else
    {
        c = old[i - 1];
    }
    if ((j == 0) || (strlen(new) < j))
    {
        d = 0;
    }
    else
    {
        d = new[j - 1];
    }
    return (c != d);
}
static int distdifferent ( const char * old , const char * new , size_t i , size_t j ) { char c , d ; if ( ( i == 0 ) || ( strlen ( old ) < i ) ) { c = 0 ; } else { c = old [ i - 1 ] ; } if ( ( j == 0 ) || ( strlen ( new ) < j ) ) { d = 0 ; } else { d = new [ j - 1 ] ; } return ( c != d ) ; }
Calculate how different two strings are in terms of the number of
 character removals, additions, and changes needed to go from one to
 the other
Calculate how different two strings are in terms of the number of character removals additions and changes needed to go from one to the other