How can I check if the -h operator is included in the command line? It also needs to be next to an html filename?
How can I check if the -h operator is included in the command line? It also needs to be next to an html filename?
One popular method of parsing command line arguments is getopt(), but this is not available on all systems. If all you are looking for is "-h", then it would be easy to just use strcmp() against all the passed arguments.
ah genius! thanks