r/C_Programming • u/Just_Government3790 • Sep 12 '26
Question What C function would you delete and rewrite first, and why?
For me it's fnmatch - mostly because it's 40 year's old and smell's funny.
95
Upvotes
View all comments
Show parent comment
1
u/Dangerous_Region1682 Sep 14 '26
Yep. What the compiler writer might consider cleanly omitted might be very different from that of a kernel engineer’s. Once again, having a compiler generate code that executes what you write rather than what it thinks it can optimize away is often two different kettles of fish.