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_ascii(struct libscols_table* tb, int enable)
{
    if (!tb)
        return -EINVAL;

    DBG(TAB, ul_debugobj(tb, "ascii: %s", enable ? "ENABLE" : "DISABLE"));
    tb->ascii = enable ? 1 : 0;
    return 0;
}
/**
 * scols_table_enable_ascii:
 * @tb: table
 * @enable: 1 or 0
 *
 * The ASCII-only output is relevant for tree-like outputs. The library
 * checks if the current environment is UTF8 compatible by default. This
 * function overrides this check and force the library to use ASCII chars
 * for the tree.
 *
 * If a custom libcols_symbols are specified (see scols_table_set_symbols()
 * then ASCII flag setting is ignored.
 *
 * Returns: 0 on success, negative number in case of an error.
 */
@tb: table
@enable: 1 or 0

The ASCII-only output is relevant for tree-like outputs. The library
checks if the current environment is UTF8 compatible by default. This
function overrides this check and force the library to use ASCII chars
for the tree.

If a custom libcols_symbols are specified
then ASCII flag setting is ignored.

0 on success, negative number in case of an error.
@tb : table @enable : 1 or 0 The ASCII - only output is relevant for tree - like outputs . The library checks if the current environment is UTF8 compatible by default . This function overrides this check and force the library to use ASCII chars for the tree . If a custom libcols_symbols are specified then ASCII flag setting is ignored . 0 on success negative number in case of an error .
int scols_table_enable_ascii(struct libscols_table* tb, int enable)
{
    if (!tb)
        return -EINVAL;
    DBG(TAB, ul_debugobj(tb, "ascii: %s", enable ? "ENABLE" : "DISABLE"));
    tb->ascii = enable ? 1 : 0;
    return 0;
}
int scols_table_enable_ascii ( struct libscols_table * tb , int enable ) { if ( ! tb ) return - EINVAL ; DBG ( TAB , ul_debugobj ( tb , " " , enable ? " " : " " ) ) ; tb -> ascii = enable ? 1 : 0 ; return 0 ; }
scols_table_enable_ascii:
 @tb: table
 @enable: 1 or 0
scols_table_enable_ascii : @tb : table @enable : 1 or 0