Hi again! My lovely Compiler, lcc-win32, do not accept this code! Or lets say it this way: It can be compiled and linked, but if I run the code it crashes! WHY?
WHY?Code:int main(int argc, char *argv[]); if (argc < 2) //Usage Menu else if (strcmp (argv[1], "/usageone") == 0) { //Usage one } else if (strcmp (argv[1], "/usagetwo") == 0) { if (strcmp (argv[2], NULL) == 0) { printf("No second usage!\n"); return 0; } else // Usage two } else { printf("no usage!\n"); return 0; } }