How does one go about making it a requirement for parameters to be passed while executing a program through a Linux terminal?
This is in C, specifically.
To explain better.. In terminal, I need to be able to run the program like so
./program FILENAME secondParameter
Also need to return the error message for this if the parameters are not given and then discontinue the program from running.
I can give more info if needed, seems like a pretty straight forward question.