I have two arrays that I'm trying to compare to see if the values are the same and then use it in an if statement to compare. Here they are declared:
And this is what I tried to use to compare them:Code:static char *my_argv[100]; strcpy(execCommands->command[0],"blank"); //The 2nd one is from a structure i have tested it and it has the correct value //The way I tested both of them is below printf("ARGV: %s / COMMAND: %s", my_argv[0], execCommands->command[0]);
Thanks for any help you can give,Code:if (strcmp(my_argv[0], execCommands->command[0])) printf("FOUND BLANK");
Dan



LinkBack URL
About LinkBacks



....something so small lol