Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
String Comparisons, EXACT...
OK, I need to compare two string's text, even if the strings are not the same length. An example may clear up what I am trying to do.
char str1 = "Meow";
char str2 = "Meow";
char str3 = "Meowing";
Now, regardless of the different sizes, how can I test just the text that is in them, for an EXACT match? From the above sources, if I compared 1 and 2 I want it to be TRUE, and if I compared 1 and 3 or 2 and 3, I'd want it to be FALSE. Is there a C/C++ function that can do this? I have tried things with "strstr" and "strcmp/strcmpi", but none do it properly and the results are invalid settings for my combo boxes. I have even had a combo box set itself to a setting that isn't anywhere in the string, and I can NOT figure out why because there isn't anything remotly close to what is required to set the answer it gave me. Any ideas?