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/sys-utils/chmem.c
static int zone_name_to_id(const char* name)
{
    size_t i;

    for (i = 0; i < ARRAY_SIZE(zone_names); i++)
    {
        if (!strcasecmp(name, zone_names[i]))
            return i;
    }
    return -1;
}
/*
 * name must be null-terminated
 */
name must be null-terminated
name must be null - terminated
static int zone_name_to_id(const char* name)
{
    size_t i;
    for (i = 0; i < ARRAY_SIZE(zone_names); i++)
    {
        if (!strcasecmp(name, zone_names[i]))
            return i;
    }
    return -1;
}
static int zone_name_to_id ( const char * name ) { size_t i ; for ( i = 0 ; i < ARRAY_SIZE ( zone_names ) ; i ++ ) { if ( ! strcasecmp ( name , zone_names [ i ] ) ) return i ; } return -1 ; }
name must be null-terminated
name must be null - terminated