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