If the meaning of the result is important, then Allan is right (accepted answer). If you're just looking for a match and not worried about performance, use the alternative to strcmp () or memcmp ().
In assembler, it is common to initialize XOR things against themselves, since T-loops are smaller. If I were crude forcing (hash comparison), then this would be an improvement over strcmp or memcmp, since I really don't sort the order, I just map / number.
Readers should also know this one that can be customized.
mckenzm
source share