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_reduce_termwidth(struct libscols_table* tb, size_t reduce)
{
    if (!tb)
        return -EINVAL;

    DBG(TAB, ul_debugobj(tb, "reduce terminal width: %zu", reduce));
    tb->termreduce = reduce;
    return 0;
}
/**
 * scols_table_reduce_termwidth:
 * @tb: table
 * @reduce: width
 *
 * If necessary then libsmartcols use all terminal width, the @reduce setting
 * provides extra space (for example for borders in ncurses applications).
 *
 * The @reduce must be smaller than terminal width, otherwise it's silently
 * ignored. The reduction is not applied when STDOUT_FILENO is not terminal.
 *
 * Note that after output initialization (scols_table_print_* calls) the width
 * will be reduced, this behavior affects subsequenced
 * scols_table_get_termwidth() calls.
 *
 * Returns: 0, a negative value in case of an error.
 */
@tb: table
@reduce: width

If necessary then libsmartcols use all terminal width, the @reduce setting
provides extra space (for example for borders in ncurses applications).

The @reduce must be smaller than terminal width, otherwise it's silently
ignored. The reduction is not applied when STDOUT_FILENO is not terminal.

Note that after output initialization (scols_table_print_* calls) the width
will be reduced, this behavior affects subsequenced
scols_table_get_termwidth() calls.

0, a negative value in case of an error.
@tb : table @reduce : width If necessary then libsmartcols use all terminal width the @reduce setting provides extra space ( for example for borders in ncurses applications ) . The @reduce must be smaller than terminal width otherwise it ' s silently ignored . The reduction is not applied when STDOUT_FILENO is not terminal . Note that after output initialization ( scols_table_print_ * calls ) the width will be reduced this behavior affects subsequenced scols_table_get_termwidth () calls . 0 a negative value in case of an error .
int scols_table_reduce_termwidth(struct libscols_table* tb, size_t reduce)
{
    if (!tb)
        return -EINVAL;
    DBG(TAB, ul_debugobj(tb, "reduce terminal width: %zu", reduce));
    tb->termreduce = reduce;
    return 0;
}
int scols_table_reduce_termwidth ( struct libscols_table * tb , size_t reduce ) { if ( ! tb ) return - EINVAL ; DBG ( TAB , ul_debugobj ( tb , " " , reduce ) ) ; tb -> termreduce = reduce ; return 0 ; }
scols_table_reduce_termwidth:
 @tb: table
 @reduce: width
scols_table_reduce_termwidth : @tb : table @reduce : width