I need to do some string formatting for debugging purposes on a platform with no OS libraries, no C/C++ standard libraries (well, sort of, it's complicated) and no runtime for another language.
Now, I know that that there are quite a few out-of-libc implementations of printf/sprintf/snprintf, but some are very partial; some have quirks or bugs; some actually do depend on standard library code (say,
I would like to be able to compare the strengths and weaknesses of these in order to choose one.
- Libre license
- Covers most
- Doesn't have to be strictly C, can be C++
- Doesn't have to be independent of all C library headers (as opposed to code), but must be frugal about this so I might be able to lift stuff from the header files as necessary
- Covers all of the standard
- License more permissive than GPL
- Non-convoluted code
vsnprintf()in addition to