C Arguments to main - can't compare values
Whats wrong with this:
Kind regards Mads Nielsen
You have to use strcmp to compare two c-strings.
With '==' you compare in your case only the strings addresses, which here are never the same.
An you should always check the parameters-count (argc).
Thank you very much!
|All times are GMT -5. The time now is 05:27 AM.|