blh64:
If two strings look the same, but compare different, you either have
- spaces at the end
- a CR and/or a LF on one of the strings which doesn't compare
Is there a way to print spaces, CR, or LF's to the serial monitor? I think this may be the issue but I can't figure out how to print the output of str so I can see what's going on.
PaulS:
Which str do you think you are comparing to purchase? Dollars to donuts it is NOT the one you think is being compared.
I printed both str and purchased to the serial monitor to verify that these were the strings I was looking to compare and they appear the same, but as blh64 mentioned I may not be seeing an extra space, LF or CR.