Return to rs.c CVS log | Up to [local] / src / usr.bin / rs |
version 1.3, 1996/06/26 05:38:47 | version 1.4, 1997/09/12 04:12:54 | ||
---|---|---|---|
|
|
||
*/ | */ | ||
#include <ctype.h> | #include <ctype.h> | ||
#include <err.h> | |||
#include <stdio.h> | #include <stdio.h> | ||
#include <stdlib.h> | #include <stdlib.h> | ||
#include <string.h> | #include <string.h> | ||
|
|
||
else if (orows == 0 && ocols == 0) { /* decide rows and cols */ | else if (orows == 0 && ocols == 0) { /* decide rows and cols */ | ||
ocols = owidth / colw; | ocols = owidth / colw; | ||
if (ocols == 0) { | if (ocols == 0) { | ||
warnx("Display width %d is less than column width %d\n", owidth, colw); | warnx("Display width %d is less than column width %d", | ||
owidth, colw); | |||
ocols = 1; | ocols = 1; | ||
} | } | ||
if (ocols > nelem) | if (ocols > nelem) |