A
Andrej Hocevar
Hello,
I'm having problems with string comparisons.
I have data like char d1[3] = {1, 2, 3} and char d2[1][3] = {1, 2,
3}. Now if I do strcmp(d1, d2[1]), it compares only the first
character, it seems. What is the correct solution?
Thanks,
andrej
I'm having problems with string comparisons.
I have data like char d1[3] = {1, 2, 3} and char d2[1][3] = {1, 2,
3}. Now if I do strcmp(d1, d2[1]), it compares only the first
character, it seems. What is the correct solution?
Thanks,
andrej