Registry / utility / nanoprintf

nanoprintf

JSON →
library0.5.6vcpkgunverified

A tiny embeddable printf replacement written in C99

vcpkg install nanoprintf
INSTALL
IMPORT
SIG · NANOPRINTF
N
nanoprintf
utilitycppv0.5.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nanoprintf.h
✓ #include <nanoprintf.h>

Format a string using nanoprintf

#include <nanoprintf.h> #include <cstdio> int main() { char buf[64]; npf_snprintf(buf, sizeof(buf), "Hello %s! %d\n", "world", 42); std::puts(buf); return 0; }
Debug
Known issues
gotchananoprintf is a minimal implementation and may not support all printf format specifiers (e.g., %n, wide chars).
fix
Check the documentation for supported specifiers; use standard printf if full compatibility is needed.
affects: *
Upgrade
Version history
0.5.6latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

nanoprintf — pip install nanoprintf · libregistry