version 1.15, 1997/09/15 04:57:54 |
version 1.16, 1997/11/25 08:10:34 |
|
|
|
|
if (!interactive || confirmrest) |
if (!interactive || confirmrest) |
return (1); |
return (1); |
|
top: |
fprintf(ttyout, "%s %s? ", cmd, file); |
fprintf(ttyout, "%s %s? ", cmd, file); |
(void)fflush(ttyout); |
(void)fflush(ttyout); |
if (fgets(line, sizeof(line), stdin) == NULL) |
if (fgets(line, sizeof(line), stdin) == NULL) |
|
|
break; |
break; |
default: |
default: |
fprintf(ttyout, "n, y, p, a, are the only acceptable commands!\n"); |
fprintf(ttyout, "n, y, p, a, are the only acceptable commands!\n"); |
fprintf(ttyout, "%s %s? ", cmd, file); |
goto top; |
fgets(line, sizeof(line), stdin); |
|
confirm(cmd, file); |
|
break; |
break; |
} |
} |
return (1); |
return (1); |