hi I am trying to write a simple cat program in C but am getting very confused. I thought i knew where to start but I dont. the assignment says: You will be writing a simple version of the program "cat". It must accept as arguments any number fo filenames. Each file's contents should be printed to stdout. Errors go to stderr, including if you cannot open a file. Do not crash if a file is not found, do continue to other files if one is not found. I am confused about where it will be getting files from? and how do i get things to print to stderr?:rolleyes:
If someone would please help me get started I would appreciate it!
thanks
kiki021600
0
Newbie Poster
Recommended Answers
Jump to Post>I am confused about where it will be getting files from?
The program will be executed like this:$ mycat file1 file2 file3
For the purposes of your assignment, you can assume the following for argc and argv of main:
argc = 4; argv[0] …
Jump to PostIf you have a question with the assignment definition itself, the best person to ask is your professor.
All 6 Replies
Narue
5,707
Bad Cop
Team Colleague
kiki021600
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
jwenting
1,889
duckman
Team Colleague
kiki021600
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.