]>
diplodocus.org Git - nmh/blob - docs/historical/SRI-NOSC/subs.dir/gans.c
15 while((i
= getchar()) != '\n') {
18 if(cp
< &ansbuf
[31]) {
19 if(i
>= 'A' && i
<= 'Z')
25 if(ansbuf
[0] == '?' || cp
== ansbuf
) {
26 printf("Options are:\n");
27 for(ap
= ansp
; ap
->sw
; ap
++)
28 printf(" %s\n", ap
->sw
);
31 if((i
= smatch(ansbuf
, ansp
)) < 0) {
32 printf("%s: %s.\n", ansbuf
, i
== -1? "unknown":"ambiguous");