Hacker News new | ask | show | jobs
by rafa1981 2488 days ago
I did exactly the same on my two loggers, as a C literal is always read only and unique, passing a printf-like string is passing a pointer.

The it's just a matter of adding validation and passing the arguments in a compact way.