- *cp++ = i;
- }
- }
- *cp = '\0';
- if (ansbuf[0] == '?' || cp == ansbuf) {
- printf ("Options are:\n");
- for (ap = ansp; ap->sw; ap++)
- printf (" %s\n", ap->sw);
- continue;
- }
- if ((i = smatch (ansbuf, ansp)) < 0) {
- printf ("%s: %s.\n", ansbuf, i == -1 ? "unknown" : "ambiguous");
- continue;
+ *cp++ = i;
+ }
+ }
+ *cp = '\0';
+ if (ansbuf[0] == '?' || cp == ansbuf) {
+ printf("Options are:\n");
+ for (ap = ansp; ap->sw; ap++)
+ printf(" %s\n", ap->sw);
+ continue;
+ }
+ if ((i = smatch(ansbuf, ansp)) < 0) {
+ printf("%s: %s.\n", ansbuf, i == -1 ? "unknown" : "ambiguous");
+ continue;
+ }
+ return i;