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
89
u/bluetomcat Sep 12 '26
Make fread and fwrite accept the bloody FILE pointer as their first argument, and unite size and count into one argument.