How does one compare an element of argv (an array of char pointers) with a literal string, or to put it more accurately, how does one compare the char array being pointed at by an element of argv with a literal string?
When I use the syntax:
if (argv == "ALiteralString")
my compiler warns "comparison with string literal results in unspecified behavior", and its right. Its unspecified behavior alright. Because it ignores the if statement designed to be entered if the second argument (counting the program name) is a certain string ("--help", to be more exact).