openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/e2fsprogs/1.44.5-r0/git/debugfs/xattrs.c
static int is_mostly_printable(const char* cp, int len)
{
    int np = 0;

    if (len < 0)
        len = strlen(cp);

    while (len--)
    {
        if (!isprint(*cp++))
        {
            np++;
            if (np > 3)
                return 0;
        }
    }
    return 1;
}
/*
 * Return non-zero if the string has a minimal number of non-printable
 * characters.
 */
Return non-zero if the string has a minimal number of non-printable
characters.
Return non - zero if the string has a minimal number of non - printable characters .
static int is_mostly_printable(const char* cp, int len)
{
    int np = 0;
    if (len < 0)
        len = strlen(cp);
    while (len--)
    {
        if (!isprint(*cp++))
        {
            np++;
            if (np > 3)
                return 0;
        }
    }
    return 1;
}
static int is_mostly_printable ( const char * cp , int len ) { int np = 0 ; if ( len < 0 ) len = strlen ( cp ) ; while ( len -- ) { if ( ! isprint ( * cp ++ ) ) { np ++ ; if ( np > 3 ) return 0 ; } } return 1 ; }
Return non-zero if the string has a minimal number of non-printable
 characters.
Return non - zero if the string has a minimal number of non - printable characters .