{"id":18029689,"url":"https://github.com/tekknolagi/fmt","last_synced_at":"2025-04-04T21:13:25.226Z","repository":{"id":142330723,"uuid":"493976694","full_name":"tekknolagi/fmt","owner":"tekknolagi","description":"Small C string formatting library","archived":false,"fork":false,"pushed_at":"2022-05-31T06:38:32.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2025-02-10T05:42:01.322Z","etag":null,"topics":["c","formatting","library","single-header","string"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tekknolagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-05-19T08:02:04.000Z","updated_at":"2024-11-16T04:54:45.000Z","dependencies_parsed_at":"2023-06-03T04:15:42.053Z","dependency_job_id":null,"html_url":"https://github.com/tekknolagi/fmt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekknolagi%2Ffmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekknolagi%2Ffmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekknolagi%2Ffmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekknolagi%2Ffmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tekknolagi","download_url":"https://codeload.github.com/tekknolagi/fmt/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249549,"owners_count":20908212,"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":["c","formatting","library","single-header","string"],"created_at":"2024-10-30T09:10:39.279Z","updated_at":"2025-04-04T21:13:25.203Z","avatar_url":"https://github.com/tekknolagi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [fmt](https://github.com/tekknolagi/fmt)\n\nThis very small formatting library provides two functions and a data type for\nwhen you need to heap-allocate and format a string at once. You could try and\nremember exactly how to do that dance, or you could include `fmt.h` and go on\nyour way.\n\n```c\n// NUL-terminated string and length. Length does not include NUL.\ntypedef struct str_size {\n  char *str;\n  size_t length;\n} str_size;\n\nstr_size format(const char *fmt, ...);\nstr_size formatv(const char *fmt, va_list args);\nvoid str_size_free(str_size str);  // or you can free(str.str)\n```\n\nHappy hacking.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftekknolagi%2Ffmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftekknolagi%2Ffmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftekknolagi%2Ffmt/lists"}