Esempio n. 1
0
static void
perform_test(column_info_t column_info)
{
    columns_t cols = columns_create();
    columns_add_column(cols, column_info);

    columns_format_line(cols, NULL, MAX_WIDTH);

    columns_free(cols);
}
Esempio n. 2
0
File: width.c Progetto: langner/vifm
static void
perform_test(column_info_t column_infos[2])
{
	columns_t cols = columns_create();
	columns_add_column(cols, column_infos[0]);
	columns_add_column(cols, column_infos[1]);

	memset(print_buffer, ' ', MAX_WIDTH);
	columns_format_line(cols, NULL, MAX_WIDTH);

	columns_free(cols);
}
Esempio n. 3
0
static void
perform_test(column_info_t column_infos[], size_t count, size_t max_width)
{
	size_t i;

	columns_t *const cols = columns_create();
	for(i = 0U; i < count; ++i)
	{
		columns_add_column(cols, column_infos[i]);
	}

	memset(print_buffer, '\0', sizeof(print_buffer));
	columns_format_line(cols, NULL, max_width);

	columns_free(cols);
}
Esempio n. 4
0
static void
perform_test(column_info_t column_infos[], int n)
{
	int i;
	columns_t *const cols = columns_create();

	for(i = 0; i < n; ++i)
	{
		columns_add_column(cols, column_infos[i]);
	}

	memset(print_buffer, ' ', MAX_WIDTH);
	columns_format_line(cols, NULL, MAX_WIDTH);

	columns_free(cols);
}