version 1.16, 2000/07/06 06:24:39 |
version 1.17, 2000/08/02 04:10:48 |
|
|
int firstmsg, nextmsg, lastmsg = 0; |
int firstmsg, nextmsg, lastmsg = 0; |
int blast = 0; |
int blast = 0; |
FILE *bounds; |
FILE *bounds; |
|
char *cp; |
|
|
#ifdef UNBUFFERED |
#ifdef UNBUFFERED |
setbuf(stdout, NULL); |
setbuf(stdout, NULL); |
|
|
lastmsg = 0; |
lastmsg = 0; |
|
|
for (dp = readdir(dirp); dp != NULL; dp = readdir(dirp)){ |
for (dp = readdir(dirp); dp != NULL; dp = readdir(dirp)){ |
register char *cp = dp->d_name; |
|
register int i = 0; |
register int i = 0; |
|
|
|
cp = dp->d_name; |
if (dp->d_ino == 0) |
if (dp->d_ino == 0) |
continue; |
continue; |
if (dp->d_namlen == 0) |
if (dp->d_namlen == 0) |
|
|
totty = (isatty(fileno(stdout)) != 0); |
totty = (isatty(fileno(stdout)) != 0); |
use_pager = use_pager && totty; |
use_pager = use_pager && totty; |
|
|
snprintf(fname, sizeof(fname), "%s/%s", getenv("HOME"), MSGSRC); |
if ((cp = getenv("HOME")) == NULL || *cp == '\0') { |
|
fprintf(stderr, "Error, no home directory!\n"); |
|
exit(1); |
|
} |
|
snprintf(fname, sizeof(fname), "%s/%s", cp, MSGSRC); |
msgsrc = fopen(fname, "r"); |
msgsrc = fopen(fname, "r"); |
if (msgsrc) { |
if (msgsrc) { |
newrc = NO; |
newrc = NO; |