{"id":26148911,"url":"https://github.com/agvxov/dictate","last_synced_at":"2025-04-14T03:41:16.308Z","repository":{"id":277055103,"uuid":"916198210","full_name":"agvxov/dictate","owner":"agvxov","description":"The Überfunktion of printing. Generics, colors, formats, margins, it has them all.","archived":false,"fork":false,"pushed_at":"2025-03-20T10:20:53.000Z","size":287,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T17:46:19.131Z","etag":null,"topics":["c","library","modern-c","pretty-print"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agvxov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-13T16:32:33.000Z","updated_at":"2025-03-20T10:20:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"1183d539-1feb-4665-89b6-7fe2a2da8824","html_url":"https://github.com/agvxov/dictate","commit_stats":null,"previous_names":["agvxov/dictate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agvxov%2Fdictate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agvxov%2Fdictate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agvxov%2Fdictate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agvxov%2Fdictate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agvxov","download_url":"https://codeload.github.com/agvxov/dictate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248818525,"owners_count":21166438,"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","library","modern-c","pretty-print"],"created_at":"2025-03-11T05:22:06.938Z","updated_at":"2025-04-14T03:41:16.285Z","avatar_url":"https://github.com/agvxov.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dictate\n\u003e The Überfunktion of printing. Generics, colors, formats, margins, it has them all.\n\nDictate is a family of print functions tailored,\nbut not limited to the cli.\n\n**Dictate**\n- is generic,\n- is variadic,\n- resolves irritating `\u003cstdio.h\u003e` inconsistencies,\n- has debug variants,\n- has a convenient way to handle colors,\n- and adds margin support.\n\n## Example\n![example.png](example.png)\n\n## Generic and variadic?\nYes, `dictate()` is generic and variadic.\nYou can pass in as many arguments as you wish and with the types you wish,\nwithout requiring a format string.\nUnless of couse you *want* a format string,\nin which case `dictatef()`\n-behaving like `printf()`, but with the rest of the dictate features-\nhas you covered.\nThis is accomplished with a combination of C11's `_Generic` and macros.\n\n## Irritating stdio inconsistencies\nThe sole reason dictate exists is this:\n```C\n    fprintf(FILE *, char *, ...); // FILE first\n    fputs(char *, FILE *);        // FILE last\n```\n\n## Colors\nWith dictate,\ninstead of passing in ascii escape sequences directly,\nyou pass in color specifies of the form: `$\u003cfirst-letter-of-color\u003e`.\nNot only is this easier to remember,\nyou can also toggle their rendering (per thread),\nwhich makes implementing something like `NO_COLOR` compliance trivial.\n\n## Debug builds\nDictate provides `debug_*` variants for its every function.\nThese are only executed if `DEBUG` was defined,\notherwise they result in nops.\n\n## Margins\nMargins are characters which appear on the left of each line of an output.\nThey are useful for distinguishing regions of output for a reader.\nExamples would include `valgrind` or `cmdtest`.\nDictate has function variants which produce such margins.\n\n## Notes\nDictate requires C23.\n\nFor the full documentation,\nplease consult the [header](dictate.h),\nit was made to be readable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagvxov%2Fdictate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagvxov%2Fdictate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagvxov%2Fdictate/lists"}