Sprintf without C library

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • stb

    stb single-file public domain libraries for C/C++

  • 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.

  • printf

    Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.

  • https://github.com/mpaland/printf i think this would work

  • 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.

    WorkOS logo
  • cosmopolitan

    build-once run-anywhere c library

  • There is a sprintf implementation in here: https://github.com/jart/cosmopolitan/tree/master/libc/fmt

  • printf

    Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems. (by eyalroz)

  • Note that https://github.com/eyalroz/printf is the fork of mpaland that is being maintained.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts