I need to write a C program that recognizes the following commands ONLY using scanf().
-list
-cd dir
-get file_name
Any advice on how to achieve this? Thanks
Printable View
I need to write a C program that recognizes the following commands ONLY using scanf().
-list
-cd dir
-get file_name
Any advice on how to achieve this? Thanks
Step 1-
Open your text book
Step 2 - Post your attempt. :)
(Hint: use strncmp(), in <string.h>.)