I'm making a shell(look at code), but when I enter a command
like "dir /p", the program treats it like to commands: "dir" and "/p". Can I do anything to change this?
Code:#include <stdio.h> #include <stdlib.h> int main() { char path[64] = "C:\\Dev-C++>"; char input[10]; for(;;) { printf("%s",path); scanf("%s",&input); system(input); } return 0; }