| Rules Applied | JavaKeywordRule | app0.txt | PPspaceRule | PPifndefRule | PPRule | PPdefineRule.DefineReplacementRule | MissingFunctionTypeRule | snippets0b.txt | CommaInForRule | OneDeclarationPerLineRule | ArrayDeclaration0Rule | AddBracesRule | LabelRemoverRule | ConflictingVariableDeclarationRule | StaticFunctionsRule | CharToShortRule | MultipleAssignmentRule | snippets0e.txt | readline.lsnippet | ArrayDeclarationRule | StringRule | stringfunctions.txt | DeclarationAssignmentRule | invalidStatement2.txt | BooleanFunctionRule | ForceToBooleanRule | ForceToBoolean2Rule | strings2.txt | snippets2.txt | snippets2a.txt | snippets3.txt | ElseIfRule | PrintfRule | stdin.txt | IOExceptionRule | UninitializedVariableRule | InsertClassRule | ImportRule | (Final Version) | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| JavaKeywordRule app0.txt PPspaceRule PPifndefRule PPRule PPdefineRule.DefineReplacementRule MissingFunctionTypeRule snippets0b.txt CommaInForRule OneDeclarationPerLineRule ArrayDeclaration0Rule AddBracesRule LabelRemoverRule ConflictingVariableDeclarationRule StaticFunctionsRule CharToShortRule MultipleAssignmentRule snippets0e.txt readline.lsnippet ArrayDeclarationRule StringRule stringfunctions.txt DeclarationAssignmentRule invalidStatement2.txt BooleanFunctionRule ForceToBooleanRule ForceToBoolean2Rule strings2.txt snippets2.txt snippets2a.txt snippets3.txt ElseIfRule PrintfRule stdin.txt IOExceptionRule UninitializedVariableRule InsertClassRule ImportRule final | #ifndef lint static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91"; #endif # include | #ifndef lint static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91"; #endif # include | #ifndef lint static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91"; #endif #include | #if !defined(lint) static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91"; #endif #include | static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char buf[257];
getinp(char * prompt, char * * printHoldings) {
regint i,
n_match,
match;
char * sp;
int plen;
for (;;) {
inter:for (;;) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
for (i = 0, match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char buf[257];
getinp(char * prompt, char * * printHoldings) {
register int i,
n_match,
match;
char * sp;
int plen;
for (;;) {
inter:for (;;) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
for (i = 0, match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char buf[257];
int getinp(char * prompt, char * * printHoldings) {
register int i,
n_match,
match;
char * sp;
int plen;
for (;;) {
inter:for (;;) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
for (i = 0, match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char buf[257];
int getinp(char * prompt, char * * printHoldings) {
int i,
n_match,
match;
char * sp;
int plen;
while (true) {
inter:while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
for (i = 0, match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char buf[257];
int getinp(char * prompt, char * * printHoldings) {
int i,
n_match,
match;
char * sp;
int plen;
while (true) {
inter:while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char sccsid[] = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char buf[257];
int getinp(char * prompt, char * * printHoldings) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
inter:while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
int getinp(char * prompt, char * * printHoldings) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
inter:while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) if ( * sp == - 1) continue;
else if (sp != buf || * sp != ' ') sp++;
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
int getinp(char * prompt, char * * printHoldings) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
inter:while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
int getinp(char * prompt, char * * printHoldings) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings[i];i++) {
if ((match += (n_match = strlen(printHoldings[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
static int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
static int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
static int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
static int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
for (sp = buf;( * sp = getchar()) != '\n';) {
if ( * sp == - 1) {
continue;
}
else {
if (sp != buf || * sp != ' ') {
sp++;
}
}
}
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[257] buf;
static int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static char[] sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static char[] buf = new char[257];
static int getinp(char * prompt, char * * printHoldings1) {
int i;
int n_match;
int match;
char * sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf[0] == '?' && buf[1] == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if ( * printHoldings1[i] == '\0') {
match += 8;
printf("
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = strlen(printHoldings1[i]))) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;printHoldings1[i];i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;i;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;i;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
printf(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
printf("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
printf("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
printf("
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
fprintf(stdout, prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
fprintf(stdout, "Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
fprintf(stdout, "\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
fprintf(stdout, "
| static String sccsid;
sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE;
LINE = 70;
static String buf;
buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
fprintf(stdout, prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
fprintf(stdout, "Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
fprintf(stdout, "\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
fprintf(stdout, "
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
fprintf(stdout, prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
fprintf(stdout, "Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
fprintf(stdout, "\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
fprintf(stdout, "
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
fprintf(stdout, prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
fprintf(stdout, "Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
fprintf(stdout, "\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
fprintf(stdout, "
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
System.out.print(prompt);
buf = stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
System.out.print(prompt);
buf = CIOUtils.stdin.readLine() + '\n';
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i;
int n_match;
int match;
String sp;
int plen;
while (true) {
while (true) {
System.out.print(prompt);
try {
buf = CIOUtils.stdin.readLine() + '\n';
}
catch (IOException e) {
System.err.println("IO Exception:" + e);
}
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
| static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i = 0;
int n_match = 0;
int match = 0;
String sp = null;
int plen = 0;
while (true) {
while (true) {
System.out.print(prompt);
try {
buf = CIOUtils.stdin.readLine() + '\n';
}
catch (IOException e) {
System.err.println("IO Exception:" + e);
}
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
| public class GetInput {
static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i = 0;
int n_match = 0;
int match = 0;
String sp = null;
int plen = 0;
while (true) {
while (true) {
System.out.print(prompt);
try {
buf = CIOUtils.stdin.readLine() + '\n';
}
catch (IOException e) {
System.err.println("IO Exception:" + e);
}
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
| import java.io.IOException;
public class GetInput {
static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i = 0;
int n_match = 0;
int match = 0;
String sp = null;
int plen = 0;
while (true) {
while (true) {
System.out.print(prompt);
try {
buf = CIOUtils.stdin.readLine() + '\n';
}
catch (IOException e) {
System.err.println("IO Exception:" + e);
}
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
| import java.io.IOException;
public class GetInput {
static String sccsid = "@(#)getinp.c 5.4 (Berkeley) 2/28/91";
public final static int LINE = 70;
static String buf = new String();
static int getinp(String prompt, String[] printHoldings1) {
int i = 0;
int n_match = 0;
int match = 0;
String sp = null;
int plen = 0;
while (true) {
while (true) {
System.out.print(prompt);
try {
buf = CIOUtils.stdin.readLine() + '\n';
}
catch (IOException e) {
System.err.println("IO Exception:" + e);
}
break;
}
if (buf.charAt(0) == '?' && buf.charAt(1) == '\n') {
System.out.print("Valid inputs are: ");
i = 0;
for (match = 18;i != 0;i++) {
if ((match += (n_match = printHoldings1[i].length())) > MAX_CHARS_PER_LINE) {
System.out.print("\n\t");
match = n_match + 8;
}
if (printHoldings1[i].length() == 0) {
match += 8;
System.out.print("
|