openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/cmd/systool.c
static int isbinaryvalue(struct sysfs_attribute* attr)
{
    int i;

    if (!attr || !attr->value)
        return 0;

    for (i = 0; i < binfiles; i++)
        if ((strcmp(attr->name, binary_files[i])) == 0)
            return 1;

    return 0;
}
/**
 * isbinaryvalue: checks to see if attribute is binary or not.
 * @attr: attribute to check.
 * returns 1 if binary, 0 if not.
 */
checks to see if attribute is binary or not.
@attr: attribute to check.
returns 1 if binary, 0 if not.
checks to see if attribute is binary or not . @attr : attribute to check . returns 1 if binary 0 if not .
static int isbinaryvalue(struct sysfs_attribute* attr)
{
    int i;
    if (!attr || !attr->value)
        return 0;
    for (i = 0; i < binfiles; i++)
        if ((strcmp(attr->name, binary_files[i])) == 0)
            return 1;
    return 0;
}
static int isbinaryvalue ( struct sysfs_attribute * attr ) { int i ; if ( ! attr || ! attr -> value ) return 0 ; for ( i = 0 ; i < binfiles ; i ++ ) if ( ( strcmp ( attr -> name , binary_files [ i ] ) ) == 0 ) return 1 ; return 0 ; }
isbinaryvalue: checks to see if attribute is binary or not.
isbinaryvalue : checks to see if attribute is binary or not .