This is the menu code that I'm using now. I would like this to be like a dos prompt. I want to type the command "dir" and it will go to that function. Any help would be appreciated.
Code:do { printf("\nPlease select an option (1-4):\n"); printf("1) Save\n"); printf("2) Del\n"); printf("3) Dir\n"); printf("4) Quit\n"); scanf("%d",&choice); switch (choice) { case 1: Save(); break; case 2: Del(); break; case 3: Dir(); break; case 4: break; default: printf("Invalid choice"); break; } } while(choice != 4);