The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 3 C Sprintf Projects
-
printf
Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
-
printf
Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems. (by eyalroz)
-
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.
-
callback_printf
callback_printf allows the implementation of portable sprintf, snprintf, vsprintf and vsnprintf like output functions. The code includes wrappers for those functions. It supports all formats of the C 11 standard. wchar_t arguments and strings are printed as UTF-8. It's pretty fast, threadsafe and has no dependencies to other libraries.
From my experience, maintaining a standalone/embedded printf library - MISRA is a combination of two things: Common-sense rules, and pain-in-the-ass rules. Example of the latter: Avoiding implementation-defined types like `int` in places where my code doesn't care about what sizeof(int) is.
I was able to accommodate most (?) of the MISRA rules (https://github.com/eyalroz/printf/issues/77), but mine is just a small library, so I don't know how restrictive they would be for a larger codebase.
Project mention: nanoprintf VS callback_printf - a user suggested alternative | libhunt.com/r/nanoprintf | 2023-08-16callback_printf is a fully loaded and fast sprintf wrapper that supports a lot of numeral systems and prints Unicode as UTF8. It comes with a little benchmark for checking vsprintf implementations.
C Sprintf related posts
- MISRA C
- Sprintf without C library
- What is the most efficient way to create an ASCII string from multiple types?
- How should I go about implementing printf-like function in my library?
- A 1 hour interview for an embedded engineering position
- is it safe to use printf()?
- Sprintf on STM32?
-
A note from our sponsor - WorkOS
workos.com | 25 Apr 2024
Index
What are some of the best open-source Sprintf projects in C? This list will help you:
Project | Stars | |
---|---|---|
1 | printf | 2,345 |
2 | printf | 361 |
3 | callback_printf | 1 |
Sponsored