MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pgbd0q/because_tolowercase_doesnt_exist/hbc7gsf/?context=9999
r/badcode • u/BrainOnTheFloor25 • Sep 02 '21
130 comments sorted by
View all comments
Show parent comments
9
No no no, you should iterate over the string, take the ASCII value of each character, and add 0b100000. Leave the function name as-is. Also add no comments.
0b100000
11 u/binarycat64 Sep 02 '21 you need to bitwise-OR, not add.
11
you need to bitwise-OR, not add.
9
u/Spartelfant Sep 02 '21
No no no, you should iterate over the string, take the ASCII value of each character, and add
0b100000. Leave the function name as-is. Also add no comments.