23 lines
549 B
C
23 lines
549 B
C
#include <stdio.h>
|
|
|
|
#include "fort.h"
|
|
|
|
|
|
int main(void)
|
|
{
|
|
ft_table_t *table = ft_create_table();
|
|
|
|
/* Setup header */
|
|
ft_set_cell_prop(table, 0, FT_ANY_COLUMN, FT_CPROP_ROW_TYPE, FT_ROW_HEADER);
|
|
ft_write_ln(table, "N", "Driver", "Time", "Avg Speed");
|
|
|
|
ft_write_ln(table, "1", "Ricciardo", "1:25.945", "222.128");
|
|
ft_write_ln(table, "2", "Hamilton", "1:26.373", "221.027");
|
|
ft_write_ln(table, "3", "Verstappen", "1:26.469", "220.782");
|
|
|
|
printf("%s\n", ft_to_string(table));
|
|
ft_destroy_table(table);
|
|
|
|
return 0;
|
|
}
|