Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is more of a C question than C++.

In a C++ library you would probably make the format function type safe. But both Clang and gcc have annotations you can add to functions using format strings so they are type-checked



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: