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/libsmartcols/src/line.c
int scols_line_set_color(struct libscols_line* ln, const char* color)
{
    if (color && isalnum(*color))
    {
        color = color_sequence_from_colorname(color);
        if (!color)
            return -EINVAL;
    }
    return strdup_to_struct_member(ln, color, color);
}
/**
 * scols_line_set_color:
 * @ln: a pointer to a struct libscols_line instance
 * @color: color name or ESC sequence
 *
 * Returns: 0, a negative value in case of an error.
 */
@ln: a pointer to a struct libscols_line instance
@color: color name or ESC sequence

0, a negative value in case of an error.
@ln : a pointer to a struct libscols_line instance @color : color name or ESC sequence 0 a negative value in case of an error .
int scols_line_set_color(struct libscols_line* ln, const char* color)
{
    if (color && isalnum(*color))
    {
        color = color_sequence_from_colorname(color);
        if (!color)
            return -EINVAL;
    }
    return strdup_to_struct_member(ln, color, color);
}
int scols_line_set_color ( struct libscols_line * ln , const char * color ) { if ( color && isalnum ( * color ) ) { color = color_sequence_from_colorname ( color ) ; if ( ! color ) return - EINVAL ; } return strdup_to_struct_member ( ln , color , color ) ; }
scols_line_set_color:
 @ln: a pointer to a struct libscols_line instance
 @color: color name or ESC sequence
scols_line_set_color : @ln : a pointer to a struct libscols_line instance @color : color name or ESC sequence