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:
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]);
And this is what I tried to use to compare them:
Code:
if (strcmp(my_argv[0], execCommands->command[0]))
     printf("FOUND BLANK");
Thanks for any help you can give,

Dan