Parsing Arguments Passed Command Line C Say Already Completed Parsing Flags Need Parse Fil Q37115238

So if I am parsing arguments passed in the command line of C,say I have already completed parsing flags and now need to parsefiles.

If I have a structure that is a name and a file pointer, how doI associate a name and file pointer for each file argument passedin argv? Essentially how do I make an array of tuple values, suchthat each file has a name, file pointer and the array is simply allof these structures?


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.