HI guy's a small problem here with a strncmp
Don;t know what's wrong but this doesn;t seem to work as i expect.
when the strings are the same it should print something and when the strings aren't the same it should continue after this code...
Code:
do
{
printf("%s",arra[f]);
printf("%s",identificatie);
Sleep(1000);
if (strncmp (identificatie, arra[f], 3) == 1) //compare array with the string in identification
{
printf("\n\n\n\n%s\n\n\n",msg18); // They are the same
system("Pause");
f=9;
}
else
f++;
}while (f<=6);
When i run it it gives me nicely the array with the values and the value in identification, but when they are the same it just continues withouth the msg and when they aren't the same it just continues as well...
TIA Fred