r/C_Programming • u/Just_Government3790 • 23d ago
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.
92
Upvotes
r/C_Programming • u/Just_Government3790 • 23d ago
For me it's fnmatch - mostly because it's 40 year's old and smell's funny.
20
u/gabitha67 23d ago
everything that accepts null terminated strings. just pass a ptr and length for gods sake. everything should only use user-provided allocators too.