Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I agree. Question is too general and a new thread is needed. I addressed it in an answer below. Good attempt @MARS; Please LMK if my answer is off base!
ok thanks for the checking information. I was reading in the C book about argv[0] being the programming name, so apologies for not making use of that in the question. how do I access the information passed in as argv[1] and argv[2]?