1
0
Fork 0
Tiny, fast, non-dependent, and fully-loaded printf implementation for embedded systems
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Marco Paland 8917d48da5 Update 10 years ago
LICENSE Initial commit 11 years ago
README.md Update 10 years ago
printf.cpp Clean up, fixed some compiling issues 10 years ago
printf.h Clean up, fixed some compiling issues 10 years ago

README.md

printf

This is a very tiny but fully loaded printf, sprintf and snprintf implementation. Designed for usage in embedded systems, where printf is not available due to memory issues or avoidance of linking against libc. You have to provide your own _putchar() low level function as output.

All type and format specifiers are supported.

This is written in C++ and uses a templated itoa. But you can easily port it to plain C if you can't use C++.

Design goals:

  • No dependencies
  • LINT and compiler L4 warning free, clean code
  • Reentrant and thread-safe
  • MIT license