version 1.8, 2003/06/03 02:56:07 |
version 1.9, 2003/06/10 22:20:45 |
|
|
char *separator = "\t "; /* field separator for table option */ |
char *separator = "\t "; /* field separator for table option */ |
|
|
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char **argv; |
|
{ |
{ |
struct winsize win; |
struct winsize win; |
FILE *fp; |
FILE *fp; |
|
|
|
|
#define TAB 8 |
#define TAB 8 |
void |
void |
c_columnate() |
c_columnate(void) |
{ |
{ |
int chcnt, col, cnt, endcol, numcols; |
int chcnt, col, cnt, endcol, numcols; |
char **lp; |
char **lp; |
|
|
} |
} |
|
|
void |
void |
r_columnate() |
r_columnate(void) |
{ |
{ |
int base, chcnt, cnt, col, endcol, numcols, numrows, row; |
int base, chcnt, cnt, col, endcol, numcols, numrows, row; |
|
|
|
|
} |
} |
|
|
void |
void |
print() |
print(void) |
{ |
{ |
int cnt; |
int cnt; |
char **lp; |
char **lp; |
|
|
#define DEFCOLS 25 |
#define DEFCOLS 25 |
|
|
void |
void |
maketbl() |
maketbl(void) |
{ |
{ |
TBL *t; |
TBL *t; |
int coloff, cnt; |
int coloff, cnt; |
|
|
#define MAXLINELEN (LINE_MAX + 1) |
#define MAXLINELEN (LINE_MAX + 1) |
|
|
void |
void |
input(fp) |
input(FILE *fp) |
FILE *fp; |
|
{ |
{ |
static int maxentry; |
static int maxentry; |
int len; |
int len; |
|
|
} |
} |
|
|
void * |
void * |
emalloc(size) |
emalloc(int size) |
int size; |
|
{ |
{ |
char *p; |
char *p; |
|
|
|
|
} |
} |
|
|
void |
void |
usage() |
usage(void) |
{ |
{ |
|
|
(void)fprintf(stderr, |
(void)fprintf(stderr, |