Making a command line interpreter for my Operating systems class
The following line is giving me a problem
if (strcmp(argv[0], "ren") == 0) {
return RENAME;
}
For whatever reason it does not return anything. However if I change "ren" to "darrel" it returns the proper value of RENAME and the command executes just fine and dandy. I get the same problem with "rename"
Is there something special with "ren"? I have even done an #undef ren just to make sure. Still does not play nice.
Any help at at all is greatly appreciated. If more code is needed I can make it available upon request.