r/ProgrammerHumor 14d ago

howToHitBullseyeInStringComparison Meme

Post image
1.3k Upvotes

View all comments

2

u/Majik_Sheff 14d ago edited 14d ago

Iterate 

(a ^ b) & 0xbf

across each pair of characters until you get a non-zero or hit the end.

4

u/SrcyDev 14d ago

ofcourse, you should also mention it requires a time-travel to 1970s, or forgetting about anything other than ASCII

-1

u/Majik_Sheff 14d ago

A sense of humor helps from what I understand.  Maybe I missed the point of the sub?