{"id":20055212,"url":"https://github.com/khammerschmidt/42cursus-ft_printf","last_synced_at":"2025-08-27T01:34:34.620Z","repository":{"id":227720832,"uuid":"417380656","full_name":"KHammerschmidt/42cursus-ft_printf","owner":"KHammerschmidt","description":"Recoding the libc's printf function in C.","archived":false,"fork":false,"pushed_at":"2022-12-10T20:55:46.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T09:28:02.572Z","etag":null,"topics":["complexity","variadic-arguments"],"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/KHammerschmidt.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}},"created_at":"2021-10-15T05:39:15.000Z","updated_at":"2022-10-27T22:38:48.000Z","dependencies_parsed_at":"2024-03-14T21:14:03.943Z","dependency_job_id":null,"html_url":"https://github.com/KHammerschmidt/42cursus-ft_printf","commit_stats":null,"previous_names":["khammerschmidt/42cursus-ft_printf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KHammerschmidt/42cursus-ft_printf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KHammerschmidt%2F42cursus-ft_printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KHammerschmidt%2F42cursus-ft_printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KHammerschmidt%2F42cursus-ft_printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KHammerschmidt%2F42cursus-ft_printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KHammerschmidt","download_url":"https://codeload.github.com/KHammerschmidt/42cursus-ft_printf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KHammerschmidt%2F42cursus-ft_printf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266911080,"owners_count":24005040,"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-24T02:00:09.469Z","response_time":99,"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":["complexity","variadic-arguments"],"created_at":"2024-11-13T12:46:53.038Z","updated_at":"2025-07-24T22:13:42.242Z","avatar_url":"https://github.com/KHammerschmidt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg  width=\"90\" src=\"https://user-images.githubusercontent.com/19689770/129336866-169b0dc7-ea41-47d4-b50a-d466508031af.png\"\u003e\n  \n\t🧰 ft_printf\n \u003c/img\u003e\n\n\u003c/h1\u003e\n\u003c/br\u003e\n\n\n\u003cp align=\"center\"\u003e\n\t\u003cb\u003ePrinting output with format specifiers by using variadic arguments\u003c/b\u003e\u003c/br\u003e\n\tStart date: 05/august/2021 \u003c/br\u003e\n\t\u003csub\u003e Project status: completed 100/100 points \u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"Github code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/KHammerschmidt/42cursus-ft_printf\"/\u003e\n\t\u003cimg alt=\"Github repo size\" src=\"https://img.shields.io/github/repo-size/KHammerschmidt/42cursus-ft_printf?color=orange\"/\u003e\n\t\u003cimg alt=\"Languages used in repo\" src=\"https://img.shields.io/github/languages/count/KHammerschmidt/42cursus-ft_printf?color=red\u0026label=languages%20used%20in%20repo\"/\u003e\n\t\u003cimg alt=\"Top used progamming language\" src=\"https://img.shields.io/github/languages/top/KHammerschmidt/42cursus-ft_printf?color=yellow\"/\u003e\t\n\u003c/p\u003e\n\n---\n\n## 💡 About the project\n\u003e The aim of this project is to re-code ``` libc ```'s printf function with the conversions:\u003cbr/\u003e\n' c ', ' s ', ' p ', ' d ', ' i ', ' u ', ' x ', ' X ' and ' % '.\n\u003cbr/\u003e\n\n**Requirements** \u003c/br\u003e\n\n• The function has to handle the following conversions: cspdiuxX% \u003c/br\u003e\n• The function will be compared against the original printf() \u003c/br\u003e\n• To create the library command ar must be used \u003c/br\u003e\n• Don’t implement the buffer management of the original printf() \u003c/br\u003e\n• Using the libtool command is forbidden \u003c/br\u003e\n• Executable libftprintf.a has to be created at the root of your repository \u003c/br\u003e\n\u003c/br\u003e\n\n**Key learning points**\n  - Handling variadic arguments\n  - Organising a complex project with various sub-functions \u0026 libraries in sub-directories\n\n\u003c/br\u003e\n\n\n## 🌁  Format specifiers explained\n| Specifier\t| Meaning\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|\n| ----------|-----------------------------------------------------------------------|\n| * [`c`]\t| Prints a single character   \t\t\t\t   \t\t\t\t\t\t\t|\n| * [`s`]\t| Prints a string (as defined by the common C convention) \t\t\t\t|\n| * [`p`]\t| The void * pointer argument has to be printed in hexadecimal format   |\n| * [`d`]\t| Prints a decimal (base 10) number \t\t\t\t\t\t\t\t\t|\n| * [`i`]\t| Prints an integer in base 10\t\t\t\t\t\t\t\t\t\t\t|\n| * [`u`]\t| Prints an unsigned decimal (base 10) number\t\t\t\t\t\t\t|\n| * [`x`]\t| Prints a number in hexadecimal (base 16) lowercase format\t\t\t\t|\n| * [`X`]\t| Prints a number in hexadecimal (base 16) uppercase format\t\t\t\t|\n| * [`%`]\t| Prints a percent sign \t\t\t\t\t\t\t\t\t\t\t\t|\n\u003c/br\u003e\n\n## 🛠️ **Usage**\n\n\nClone the repository:\n```bash\ngit clone https://github.com/KHammerschmidt/42cursus-ft_printf \u0026\u0026 \ncd ft_printf \u0026\u0026\ngit clone https://github.com/KHammerschmidt/42cursus-Libft\n```\n\u003c/br\u003e\n\nTo create library libftprintf.a:\nCreate the library archive:\n```bash\nmake\n```\n\n\u003c/br\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhammerschmidt%2F42cursus-ft_printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhammerschmidt%2F42cursus-ft_printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhammerschmidt%2F42cursus-ft_printf/lists"}