{"id":25683436,"url":"https://github.com/ejarvinen/42ft_printf","last_synced_at":"2026-06-08T23:02:58.758Z","repository":{"id":266620133,"uuid":"875961343","full_name":"ejarvinen/42Ft_printf","owner":"ejarvinen","description":"A custom printf() function from the C Standard Library","archived":false,"fork":false,"pushed_at":"2025-01-31T17:28:13.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T16:56:34.892Z","etag":null,"topics":["variadic-functions"],"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/ejarvinen.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":"2024-10-21T07:04:21.000Z","updated_at":"2025-01-31T17:28:17.000Z","dependencies_parsed_at":"2024-12-05T08:20:35.102Z","dependency_job_id":"f3375c5a-3e92-4061-9f35-b003c6eae3a8","html_url":"https://github.com/ejarvinen/42Ft_printf","commit_stats":null,"previous_names":["ejarvinen/42ft_printf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ejarvinen/42Ft_printf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42Ft_printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42Ft_printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42Ft_printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42Ft_printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejarvinen","download_url":"https://codeload.github.com/ejarvinen/42Ft_printf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42Ft_printf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["variadic-functions"],"created_at":"2025-02-24T16:51:47.926Z","updated_at":"2026-06-08T23:02:58.741Z","avatar_url":"https://github.com/ejarvinen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 42Ft_printf\n## Introduction\nWelcome to **ft_printf**! The goal of this project is to reimplement the `printf()` function from the C standard library. This exercise introduced me to variadic functions in C and helped me structure extensible and efficient code.\n\n## Mandatory Requirements\n- Must be written in C and adhere to the 42 coding norm.\n- All heap-allocated memory must be properly freed to avoid leaks.\n- The project must compile with `cc` using the flags: `-Wall -Wextra -Werror`.\n- Makefile must support the following rules: `all`, `clean`, `fclean` and `re`.\n- The final library must be named `libftprintf.a` and be created using `ar` (not `libtool`).\n- The function `ft_printf()` will be compared against the standard `printf()`.\n\n## Installation\nTo set up and use **ft_printf**, follow these steps:\n```\n# Clone the repository\ngit clone https://github.com/ejarvinen/42Ft_printf.git\ncd 42Ft_printf\n\n# Compile library\nmake\n\n# Include ft_printf in your project\ngcc -Wall -Wextra -Werror your_program.c -L. -lftprintf -o your_program\n```\n## Features\n**ft_printf** supports the following conversions:\n| **Specifier** | **Description** |\n| :-----: | :-----|\n| `%c` | Prints a single character |\n| `%s` | Prints a string |\n| `%p` | Prints a pointer address in hexadecimal |\n| `%d` | Prints a decimal (base 10) integer |\n| `%i` | Prints an integer (base 10) |\n| `%u` | Prints an unsigned decimal number |\n| `%x` | Prints a number in lowercase hexadecimal (base 16) |\n| `%X` | Prints a number in uppercase hexadecimal (base 16) |\n| `%%` | Prints a percent sign |\n\n## Compilation \u0026 Usage\nTo use `ft_printf()` in your project:\n```\n#include \"libftprintf.h\"\n\nint main()\n{\n    ft_printf(\"Hello, %s! You have %d new messages.\\n\", \"User\", 5);\n    return 0;\n}\n```\nCompile and link against the library:\n```\ncc main.c -L. -lftprintf -o test_printf\n./test_printf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejarvinen%2F42ft_printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejarvinen%2F42ft_printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejarvinen%2F42ft_printf/lists"}