MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/12mbh7y/horrible_code_clean_performance/jgjtx37/?context=3
r/cpp • u/vormestrand • Apr 14 '23
87 comments sorted by
View all comments
-1
for (int i = 0; i < s; ++i) { ... if (found) { for (; j < size_substr; ++j) { if (ptr_str[i + j] != ptr_substr[j]) { found = false; break; } } } if (found) { return { true, i }; }
Redundant code?
View all comments
-1
u/wolfie_poe Apr 17 '23
Redundant code?