Return to column.c CVS log | Up to [local] / src / usr.bin / column |
version 1.4, 1997/06/30 11:46:21 | version 1.5, 1999/12/09 00:48:03 | ||
---|---|---|---|
|
|
||
maxlength = (maxlength + TAB) & ~(TAB - 1); | maxlength = (maxlength + TAB) & ~(TAB - 1); | ||
numcols = termwidth / maxlength; | numcols = termwidth / maxlength; | ||
if (numcols == 0) | |||
numcols = 1; | |||
numrows = entries / numcols; | numrows = entries / numcols; | ||
if (entries % numcols) | if (entries % numcols) | ||
++numrows; | ++numrows; |