{"id":22211426,"url":"https://github.com/almayor/ft_printf","last_synced_at":"2025-07-31T06:35:04.122Z","repository":{"id":113056742,"uuid":"242196156","full_name":"almayor/ft_printf","owner":"almayor","description":"Re-implementing printf with a spin","archived":false,"fork":false,"pushed_at":"2020-10-23T17:09:58.000Z","size":5913,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T09:46:07.091Z","etag":null,"topics":["21school","42","42projects","c","dispatcher","ft-printf","printf-42","variadic-function"],"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/almayor.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":"2020-02-21T17:37:19.000Z","updated_at":"2020-10-23T17:10:01.000Z","dependencies_parsed_at":"2023-06-07T13:15:33.984Z","dependency_job_id":null,"html_url":"https://github.com/almayor/ft_printf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almayor/ft_printf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almayor","download_url":"https://codeload.github.com/almayor/ft_printf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_printf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267998836,"owners_count":24178630,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["21school","42","42projects","c","dispatcher","ft-printf","printf-42","variadic-function"],"created_at":"2024-12-02T20:31:56.134Z","updated_at":"2025-07-31T06:35:04.079Z","avatar_url":"https://github.com/almayor.png","language":"C","readme":"# ft_printf\n\n*This project is part of the official curriculum at [School 42](https://en.wikipedia.org/wiki/42_(school)).*\n\n## Disclaimer\n\u003e In [School 42](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written to comply with. coding standard (also known as the \"[Norm](./docs/subjects/norme.en.pdf)\"). As a result, the implementation of certain parts may appear strange.\n\n\n## Overview\n\n\n* [Official instructions](docs/subjects/ft_printf.en.pdf)\n* [Module documentation](https://almayor.github.io/ft_printf/)\n* The goal of this project is to practice the following concepts\n\t* variadic functions\n\t* dispatch tables – loose coupling and performance\n\t* void pointers – generic programming\n\t* optimization patterns – buffering\n* Only the following functions are allowed\n    * `write`\n    * `malloc`\n    * `free`\n    * `exit`\n    * functions of `stdarg`\n* The project (with the exception of tests) is consistent with the [Norme](docs/subjects/norme.en.pdf), the code standard accepted at *School 42*. In particular, this means that\n\t* no comments inline or inside functions\n\t* `for` loops and `switch` statements are forbidden\n\t* each function must be maximum 25 lines\n\t* no functional macros\n* As per instructions, the project is realised using `libft` written in a previous [project](http://github.com/almayor/libft).\n\n## Checklist\n\n**_Standard_**\n\n- [x] `csp%` conversions\n- [x] `diouxX` conversions with `hh`, `h`, `l`, `ll` flags\n- [x] `f` conversion with flags `L`, `l`\n- [x] `#0-+ ` flag management (when applicable)\n- [x] minimum field-width\n- [x] precision\n- [x] `*` flag management\n\n**_Extra_**\n\n- [x] `b` conversion to print in binary\n- [x] variants of `printf`\n\t* `ft_dprintf`\n\t* `ft_vprintf`\n\t* `ft_vdprintf`\n\t* `ft_sprintf`\n\t* `ft_snprintf`\n\t* `ft_vsprintf`\n\t* `ft_vsnprintf`\n\t* `ft_asprintf`\n\t* `ft_vasprintf`\n- [x] colors\n\t* `ft_printf(\"{red} Color-print.{eoc} Normal print.\")`\n\t* red, blue, yellow, green, cyan, magenta\n\n## Tests\n\nRun tests with `make test`\n\n* Behaviour is tested with [Unity](https://github.com/ThrowTheSwitch/Unity)\n* Performance is benchmarked against `printf(3)` \n\n## Acknowledgements\n\nMany of the included tests are borrowed from [pft](https://github.com/gavinfielder/pft) by [gavinfielder](https://github.com/gavinfielder) and other contributors and [Moulitest](https://github.com/yyang42/moulitest) by [yyang42](https://github.com/yyang42) and other contributors. My thanks go to them.\n\n---\nIf you have any questions, please contact me on Github.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmayor%2Fft_printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmayor%2Fft_printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmayor%2Fft_printf/lists"}