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/table.c
int scols_table_enable_header_repeat(struct libscols_table* tb, int enable)
{
    if (!tb)
        return -EINVAL;
    DBG(TAB,
        ul_debugobj(tb, "header-repeat: %s", enable ? "ENABLE" : "DISABLE"));
    tb->header_repeat = enable ? 1 : 0;
    return 0;
}
/**
 * scols_table_enable_header_repeat:
 * @tb: table
 * @enable: 1 or 0
 *
 * Enable/disable header line repeat. The header line is printed only once by
 * default.  Note that the flag will be silently ignored and disabled if the
 * output is not on terminal or output format is JSON, raw, etc.
 *
 * Returns: 0 on success, negative number in case of an error.
 *
 * Since: 2.31
 */
@tb: table
@enable: 1 or 0

Enable/disable header line repeat. The header line is printed only once by
default.  Note that the flag will be silently ignored and disabled if the
output is not on terminal or output format is JSON, raw, etc.

0 on success, negative number in case of an error.


@tb : table @enable : 1 or 0 Enable / disable header line repeat . The header line is printed only once by default . Note that the flag will be silently ignored and disabled if the output is not on terminal or output format is JSON raw etc . 0 on success negative number in case of an error .
int scols_table_enable_header_repeat(struct libscols_table* tb, int enable)
{
    if (!tb)
        return -EINVAL;
    DBG(TAB,
        ul_debugobj(tb, "header-repeat: %s", enable ? "ENABLE" : "DISABLE"));
    tb->header_repeat = enable ? 1 : 0;
    return 0;
}
int scols_table_enable_header_repeat ( struct libscols_table * tb , int enable ) { if ( ! tb ) return - EINVAL ; DBG ( TAB , ul_debugobj ( tb , " " , enable ? " " : " " ) ) ; tb -> header_repeat = enable ? 1 : 0 ; return 0 ; }
scols_table_enable_header_repeat:
 @tb: table
 @enable: 1 or 0
scols_table_enable_header_repeat : @tb : table @enable : 1 or 0