Welcome to NYCU CSIT Mirror site

Table print

Table print

Table print — table print API

Synopsis

int                 scols_print_table                   (struct libscols_table *tb);
int                 scols_print_table_to_string         (struct libscols_table *tb,
                                                         char **data);

Description

Table output API.

Details

scols_print_table ()

int                 scols_print_table                   (struct libscols_table *tb);

Prints the table to the output stream.

tb :

table

Returns :

0, a negative value in case of an error.

scols_print_table_to_string ()

int                 scols_print_table_to_string         (struct libscols_table *tb,
                                                         char **data);

Prints the table to data.

tb :

table

data :

pointer to the beginning of a memory area to print to

Returns :

0, a negative value in case of an error.