home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_10
/
9n10025a
< prev
next >
Wrap
Text File
|
1991-08-14
|
479b
|
20 lines
main()
{
void (*lookup(const char *pcmd))(void);
void stolower(char *pstring);
char command[21];
while (1) {
printf("\nEnter Action (`Help' for help): ");
scanf(" %20[^\n]", command);
if (command[0] == '\0') {
continue;
}
stolower(command);
(*lookup(command))(); /* call selected action */
}
}