Lines Matching refs:ncols
52 unsigned int ncols;
59 Table* table_new(int ncols)
61 assert ( ncols >= 0 );
65 t->ncols = ncols;
79 assert (t->ncols > 0);
83 for (c = 0; c < t->ncols; ++c)
105 assert(t->ncols > 0);
108 t->widths = xmalloc (t->ncols * sizeof(t->widths[0]));
110 for (c = 0; c < t->ncols; ++c)
114 for (c = 0; c < t->ncols; ++c)
124 * add a row which is a string array of ncols elements.
134 for (i = 0; i < t->ncols; ++i)
169 static void table_render_row (Table* t, int rownum, int ncols, wchar_t** s)
178 for (i = 0; i < ncols; ++i)
186 for (i = 0; i < ncols; ++i)
189 if (ncols <= i + 1)
203 if (i + 1 < ncols)
231 table_render_row (t, i, t->ncols, s);