Our great sponsors
-
printf
Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
printf
Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems. (by eyalroz)
stb_sprintf is designed specifically for your usecase. It does include stdarg (for va_arg) and stddef (for size_t, ptrdiff_t), but if you are targeting a specific compiler and platform you can replace va_arg with compiler builtins and size_t, ptrdiff_t with integers of the width you need.
https://github.com/mpaland/printf i think this would work
There is a sprintf implementation in here: https://github.com/jart/cosmopolitan/tree/master/libc/fmt
Note that https://github.com/eyalroz/printf is the fork of mpaland that is being maintained.