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

You can always write a printf replacement that takes a minimal control block that provides put, get, control, and a context.

That way you can print to a serial port, an LCD Display, or a log.

Meaning seriously the standard printf is late 1970's hot garbage and no one should use it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: