I'm having an issue with my program when taking in a string.
I have two variables (ones for testing), char xpr[50] and char tst[50].
xpr gets it string by fgets --- fgets(xpr,50, stdin);
tst gets it value by strcpy --- strcpy(tst, "((1 + (2 * 3))*(2*3))");
when prompt, I put the same value ((1 + (2 * 3))*(2*3)) in xpr.
The problem is that the strcmp(xpr,tst) is greater than 0 instead of equal to 0.
Any ideas?