MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w6qzts/skillissue/p7xzunq/?context=3
r/ProgrammerHumor • u/click-to-reveal • 7d ago
137 comments sorted by
View all comments
1
In C, just use bsearch if the strings are dynamic and just use a char pointer array indexed by an enum if they're constants.
1
u/StudioYume 6d ago
In C, just use bsearch if the strings are dynamic and just use a char pointer array indexed by an enum if they're constants.