argv[0]

i am programming something in c, which will do

1
2
3
4
5
6
char *string = "me.exe";
if(argv[0] == string)
{
    ...
}
else ...


but the program doesn't seem to recognize and passes by to the else. Any ideas on how to fix this thing?
Use strcmp to compare strings in C.
thanks!
Just in case clarification is needed, strcmp returns an int. It'll return 0 if the strings are equal.
Topic archived. No new replies allowed.