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/libfdisk/src/label.c
const struct fdisk_field* fdisk_label_get_field(const struct fdisk_label* lb,
                                                int id)
{
    size_t i;

    assert(lb);
    assert(id > 0);

    for (i = 0; i < lb->nfields; i++)
    {
        if (lb->fields[i].id == id)
            return &lb->fields[i];
    }

    return NULL;
}
/**
 * fdisk_label_get_field:
 * @lb: label
 * @id: FDISK_FIELD_*
 *
 * The field struct describes data stored in struct fdisk_partition. The info
 * about data is usable for example to generate human readable output (e.g.
 * fdisk 'p'rint command). See fdisk_partition_to_string() and fdisk code.
 *
 * Returns: pointer to static instance of the field.
 */
@lb: label
@id: FDISK_FIELD_

The field struct describes data stored in struct fdisk_partition. The info
about data is usable for example to generate human readable output . See fdisk_partition_to_string() and fdisk code.

pointer to static instance of the field.
@lb : label @id : FDISK_FIELD_ The field struct describes data stored in struct fdisk_partition . The info about data is usable for example to generate human readable output . See fdisk_partition_to_string () and fdisk code . pointer to static instance of the field .
const struct fdisk_field* fdisk_label_get_field(const struct fdisk_label* lb,
                                                int id)
{
    size_t i;
    assert(lb);
    assert(id > 0);
    for (i = 0; i < lb->nfields; i++)
    {
        if (lb->fields[i].id == id)
            return &lb->fields[i];
    }
    return NULL;
}
const struct fdisk_field * fdisk_label_get_field ( const struct fdisk_label * lb , int id ) { size_t i ; assert ( lb ) ; assert ( id > 0 ) ; for ( i = 0 ; i < lb -> nfields ; i ++ ) { if ( lb -> fields [ i ] . id == id ) return & lb -> fields [ i ] ; } return NULL ; }
fdisk_label_get_field:
 @lb: label
 @id: FDISK_FIELD_
fdisk_label_get_field : @lb : label @id : FDISK_FIELD_