Hi I am new to C. I'm taking an operating systems class right now and I have a project that requires me to create a set of semaphores. The command line takes in: filename ropt NS value1 value2 value3...valueNS
Where argv0 is the filename
Argv1 is the option to remove the semaphore set (it can also be nopt which means not to remove the set)
Argv2 is the number of semaphores
Argh3 and beyond are the values assigned to the semaphores in the set.
So my question
Is how to I take in a variable number of values from the command line? Let's say that NS is 5...how do I take in 5 values from the command line? I hope I make sense....thanks for any guidance....