{"id":27291416,"url":"https://github.com/ychaaibi/ft_printf","last_synced_at":"2025-07-05T02:35:52.042Z","repository":{"id":216692491,"uuid":"742090727","full_name":"ychaaibi/ft_printf","owner":"ychaaibi","description":"Custom Printf Function in C 🚀","archived":false,"fork":false,"pushed_at":"2024-01-12T17:55:25.000Z","size":1508,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T10:04:03.582Z","etag":null,"topics":["1337school","c","printf","printf-42","variadic-functions"],"latest_commit_sha":null,"homepage":"","language":null,"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/ychaaibi.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,"zenodo":null}},"created_at":"2024-01-11T18:36:50.000Z","updated_at":"2024-01-11T21:06:54.000Z","dependencies_parsed_at":"2024-01-12T03:05:24.765Z","dependency_job_id":"e2f056c5-3daa-4810-9f32-f6044e8fbe58","html_url":"https://github.com/ychaaibi/ft_printf","commit_stats":null,"previous_names":["ychaaibi/ft_printf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ychaaibi/ft_printf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ychaaibi%2Fft_printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ychaaibi%2Fft_printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ychaaibi%2Fft_printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ychaaibi%2Fft_printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ychaaibi","download_url":"https://codeload.github.com/ychaaibi/ft_printf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ychaaibi%2Fft_printf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671847,"owners_count":23494049,"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":["1337school","c","printf","printf-42","variadic-functions"],"created_at":"2025-04-11T21:57:07.902Z","updated_at":"2025-07-05T02:35:52.027Z","avatar_url":"https://github.com/ychaaibi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Printf Function in C 🚀\n[ Project Completion Date : 2021 - 11 - 24 ]\n\n## Project Overview 📋\n\nThe project challenges me to replicate the functionality of the C standard library’s `printf` function to `ft_printf`. This function is complex and widely used for formatted output, making it a keystone of C programming. My implementation handles various conversion specifiers, flags, width, precision, and length modifiers, following the genuine behavior of `printf`.\n\n### Development Approach 🛠️\n\n- **Variadic Functions:** I delve into the usage of `stdarg.h` to manage an undefined number of function arguments, replicating the flexibility of the native `printf`.\n- **String Processing:** String manipulation lies at the heart of this project as I work through parsing format strings, generating output, and managing buffers.\n- **Modularity:** The code is structured into modular components, each handling different aspects of `printf` functionality, facilitating readability and maintainability.\n- **Unit Testing:** Rigorous test cases are developed to cover a wide range of input scenarios, ensuring the reliability and robustness of `ft_printf`.\n\n### Highlights ✨\n\n- **Supported Features:** Custom implementation supports various features including conversion specifiers (`%c`, `%s`, `%d`, `%i`, `%u`, `%x`, `%X`, `%o`, `%p`, `%S`, and `%%`).\n- **Format String Compliance:** My code closely emulates the parsing of format strings and handles compound formatting options consistently with the standard `printf`.\n\n### Additional Features 🌟\n\n- **Manage any combination of the following flags: ’-0.’ and the field minimum width under all conversions.**\n- **Manage all the following flags: ’# +’ (Yes, one of them is a space).** 🌟🛠️\n\n## Project Conclusion 🎓\n\nThrough this project, I deepened my understanding of the C language internals and developed a solid intuition for how high-level functions can be broken down into discrete, logical operations. Emphasizing hands-on practice, comprehensive testing, and attention to detail, I effectively created a close approximation of one of the most intricate standard library functions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fychaaibi%2Fft_printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fychaaibi%2Fft_printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fychaaibi%2Fft_printf/lists"}