{"id":61786,"library":"nanoprintf","title":"nanoprintf","description":"A tiny embeddable printf replacement written in C99","status":"active","version":"0.5.6","language":"cpp","source_language":null,"source_url":null,"tags":["printf","formatting","embedded","c99"],"install":[{"cmd":"vcpkg install nanoprintf","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(nanoprintf CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE nanoprintf::nanoprintf)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"nanoprintf.h","correct":"#include <nanoprintf.h>"}],"quickstart":{"code":"#include <nanoprintf.h>\n#include <cstdio>\n\nint main() {\n    char buf[64];\n    npf_snprintf(buf, sizeof(buf), \"Hello %s! %d\\n\", \"world\", 42);\n    std::puts(buf);\n    return 0;\n}","lang":"cpp","description":"Format a string using nanoprintf"},"warnings":[{"fix":"Check the documentation for supported specifiers; use standard printf if full compatibility is needed.","message":"nanoprintf is a minimal implementation and may not support all printf format specifiers (e.g., %n, wide chars).","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'c99':9,13 'embed':12 'embedd':4 'format':11 'nanoprintf':1 'printf':5,10 'replac':6 'tini':3 'written':7","created_at":"2026-06-17T05:05:28.604871+00:00","updated_at":"2026-06-17T05:05:28.604871+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}