I’m creating a very simple C program call open.c that will either:
1) List the files in the directory that will have the files text stored in an array
I have this code so far but it doesn’t seem to work.
{ }
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use
argvto compare the command-line arguments with"-ah"and"-ad".References: