Mad Dog Laurie
2008-09-15 23:09:12 UTC
My code looks like this:
if(strcmp(argv[1], "") == 0) printf("Hi");
It compiles and runs properly if I supply an argument for argv[1] but if I run it without setting argv[1], I get a segmentation fault.
What's going on? Should the "" be NULL or something?
Can someone help please?