{"id":16760145,"url":"https://github.com/maulingmonkey/libmmkformat","last_synced_at":"2026-04-29T09:05:22.107Z","repository":{"id":66817375,"uuid":"85814391","full_name":"MaulingMonkey/libMmkFormat","owner":"MaulingMonkey","description":"MaulingMonKey's Format Macros.","archived":false,"fork":false,"pushed_at":"2017-03-22T11:17:22.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T07:18:52.043Z","etag":null,"topics":["library","native","nuget","snprintf"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaulingMonkey.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-22T10:23:35.000Z","updated_at":"2017-04-06T08:12:04.000Z","dependencies_parsed_at":"2023-02-23T14:00:46.989Z","dependency_job_id":null,"html_url":"https://github.com/MaulingMonkey/libMmkFormat","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MaulingMonkey/libMmkFormat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2FlibMmkFormat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2FlibMmkFormat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2FlibMmkFormat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2FlibMmkFormat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaulingMonkey","download_url":"https://codeload.github.com/MaulingMonkey/libMmkFormat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2FlibMmkFormat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261380138,"owners_count":23149930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","native","nuget","snprintf"],"created_at":"2024-10-13T04:22:31.781Z","updated_at":"2026-04-29T09:05:22.079Z","avatar_url":"https://github.com/MaulingMonkey.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libMmkFormat\n\nMaulingMonKey's Format Macros.\n\nCurrently just provides MMK_FORMAT_TRUNC(name, length, format, ...) shorthand with all the warnings turned up.\n\nLicense: [Apache 2.0](LICENSE.txt)\n\n# Example\n\n```c\n#include \u003cmmk/format.h\u003e // MMK_FORMAT_TRUNC\n#include \u003cstdio.h\u003e      // puts\n\nint main() {\n\tconst char* const name = \"World\";\n\n\tMMK_FORMAT_TRUNC(hello_world, 1024, \"Hello, %s!\", name);\n\t// Roughly equivalent to: char hello_world[1024] = \"Hello, World!\";\n\n\tputs(hello_world);\n}\n\n```\n\n# Installation\n\nAdd [libMmkFormat](https://www.nuget.org/packages/libMmkFormat/) to your project via nuget.  Done!\n\nAlternatively, clone and add [libMmkFormat/include/](libMmkFormat/include/) to your #include paths.\nThere is currently no source/.lib/.dll/.a/.so component to worry about.\nThere are no configuration options.\n\n# Compatability\n\nSupported compilers:\n- MSVC 2005+\n- GCC 3.0+\n- Clang\n\nRequirements:\n- Variadic macro support (via C99, C++11, or compiler extension)\n\nOther compilers likely work, although they may not generate appropriate warnings.\n\n# TODO\n\n- Public CI\n- Support ICC\n- 'nix friendly packaging?\n\n# Why?\n\n- Proof of concept for publishing native nuget packages via my local build chain.\n- Need a C-friendly, non-error-prone formatting shorthand option for all my impending debug library shenannigans.\n- Josh Wittner says \"Always be Shipped\", which is even better than \"Always be Shipping\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaulingmonkey%2Flibmmkformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaulingmonkey%2Flibmmkformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaulingmonkey%2Flibmmkformat/lists"}