The 0 prematurely ends the while loop without checking for a 0 in the sentence (or any earlier characters in the wantedLetters string), so they return 1.
In reply to Re^3: Benchmarking "Are all these characters in this sentence?"
by ysth
in thread Benchmarking "Are all these characters in this sentence?"
by RMGir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |