reg
int i
, n_match
, match
;
for (sp
= buf
; (*sp
=getchar()) != '\n'; )
if (*sp
== -1) /* check for interupted system call */
else if (sp
!= buf
|| *sp
!= ' ')
if (buf
[0] == '?' && buf
[1] == '\n') {
printf("Valid inputs are: ");
for (i
= 0, match
= 18; list
[i
]; i
++) {
if ((match
+=(n_match
=strlen(list
[i
]))) > LINE
) {
for (sp
= buf
; *sp
; sp
++)
for (i
= n_match
= 0; list
[i
]; i
++)
printf("Illegal response: \"%s\". Use '?' to get list of valid answers\n", buf
);
for (sp
= buf
, tsp
= s1
; *sp
; ) {
c
= isupper(*tsp
) ? tolower(*tsp
) : *tsp
;