Creating a shell using C which could Implement LS command
Dear Experts
I would like to create the shell which would support the LS command in C++. And the way the command prompt can be changed. Any help is highly appreciated Regards |
|
Quote:
|
There are built-in libraries in C++ that you can use to emulate a shell which supports basic commands like ls and it's other options.
|
Dear All
I have prohibited to use system or exec family of commands for implementing LS in my shell using C. Any function which would return the names of files and sub-directories in the current working directory THanks |
Quote:
Did you bother to try to look this up? Google for it? Do ANYTHING? From a 10 second Google search: http://snippets.dzone.com/posts/show/5734 |
Quote:
Check this post/thread: http://www.linuxquestions.org/questi...6/#post1079538 |
And since you've fired off yet another thread on the same
topic (in an admittedly better suited forum) I'll close this one, and issue yet another warning for you. http://www.linuxquestions.org/questi...d-in-c-830563/ Just making this clear - you're not making friends with your behaviour on the boards. Cheers, Tink |
All times are GMT -5. The time now is 04:05 AM. |