version 1.72, 2015/03/17 19:31:30 |
version 1.73, 2015/10/18 03:04:11 |
|
|
(void)fflush(ttyout); |
(void)fflush(ttyout); |
if (fgets(str, sizeof(str), stdin) == NULL) |
if (fgets(str, sizeof(str), stdin) == NULL) |
goto quit; |
goto quit; |
switch (tolower(*str)) { |
switch (tolower((unsigned char)*str)) { |
case '?': |
case '?': |
fprintf(ttyout, |
fprintf(ttyout, |
"? help\n" |
"? help\n" |
|
|
if (cp != NULL) { |
if (cp != NULL) { |
cp++; |
cp++; |
size = strtoq(cp, &ep, 10); |
size = strtoq(cp, &ep, 10); |
if (*ep != '\0' && !isspace(*ep)) |
if (*ep != '\0' && !isspace((unsigned char)*ep)) |
size = -1; |
size = -1; |
} |
} |
} else if (noisy |
} else if (noisy |
|
|
char *timestr = reply_string; |
char *timestr = reply_string; |
|
|
/* Repair `19%02d' bug on server side */ |
/* Repair `19%02d' bug on server side */ |
while (!isspace(*timestr)) |
while (!isspace((unsigned char)*timestr)) |
timestr++; |
timestr++; |
while (isspace(*timestr)) |
while (isspace((unsigned char)*timestr)) |
timestr++; |
timestr++; |
if (strncmp(timestr, "191", 3) == 0) { |
if (strncmp(timestr, "191", 3) == 0) { |
fprintf(ttyout, |
fprintf(ttyout, |