{"id":22153171,"url":"https://github.com/dpetrosy/42-printf","last_synced_at":"2025-04-10T16:04:30.314Z","repository":{"id":219126791,"uuid":"748240618","full_name":"dpetrosy/42-Printf","owner":"dpetrosy","description":"This project aims to code a custom implementation of the C printf function.","archived":false,"fork":false,"pushed_at":"2024-04-03T13:21:24.000Z","size":3182,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:45:17.615Z","etag":null,"topics":["42","42-cursus","42-printf","42-school","42born2code","42cursus","42printf","42projects","42school","42yerevan","c","c-programming","ft-printf","library","makefile","printf","printf-42","printf42"],"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/dpetrosy.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":"2024-01-25T15:12:14.000Z","updated_at":"2025-03-21T15:08:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"3905961e-0684-428e-9df3-7b71ba882da8","html_url":"https://github.com/dpetrosy/42-Printf","commit_stats":null,"previous_names":["dpetrosy/42-printf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpetrosy%2F42-Printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpetrosy%2F42-Printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpetrosy%2F42-Printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpetrosy%2F42-Printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpetrosy","download_url":"https://codeload.github.com/dpetrosy/42-Printf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248250001,"owners_count":21072507,"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":["42","42-cursus","42-printf","42-school","42born2code","42cursus","42printf","42projects","42school","42yerevan","c","c-programming","ft-printf","library","makefile","printf","printf-42","printf42"],"created_at":"2024-12-02T01:17:20.368Z","updated_at":"2025-04-10T16:04:30.299Z","avatar_url":"https://github.com/dpetrosy.png","language":"C","readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Logo --\u003e\n  \u003ca href=\"https://github.com/dpetrosy/42-Printf\"\u003e\n  \u003cimg src=\"README_files/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Project Name --\u003e\n  \u003ch1\u003ePrintf Project\u003c/h1\u003e\n\n  \u003c!-- Short Description --\u003e\n  \u003cp align=\"center\"\u003e\n\t  \u003cb\u003e42 Yerevan Printf\u003c/b\u003e\u003cbr\u003e\n\t  For further information about 42cursus and its projects, please refer to \u003ca href=\"https://github.com/dpetrosy/42cursus\"\u003e\u003cb\u003e42cursus repo\u003c/b\u003e\u003c/a\u003e.\n  \u003c/p\u003e\n\n  \u003c!-- Badges --\u003e\n  \u003cp\u003e\n    \u003cimg src=\"https://img.shields.io/badge/score-100%20%2F%20100-success?style=for-the-badge\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/dpetrosy/42-Printf?style=for-the-badge\u0026logo=github\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/count/dpetrosy/42-Printf?style=for-the-badge\u0026logo=\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/top/dpetrosy/42-Printf?style=for-the-badge\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/dpetrosy/42-Printf?style=for-the-badge\" /\u003e\n  \u003c/p\u003e\n\n  \u003ch3\u003e\n      \u003ca href=\"#-about-project\"\u003e📜 About Project\u003c/a\u003e\n    \u003cspan\u003e · \u003c/span\u003e\n      \u003ca href=\"#-supported-specifiers\"\u003e📑 Supported Specifiers\u003c/a\u003e\n    \u003cspan\u003e · \u003c/span\u003e\n      \u003ca href=\"#-usage\"\u003e👨‍💻 Usage\u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n---\n\n## 📜 About Project\n\n\u003e _This project is pretty straight-forward. You will implement your own printf. You will mainly learn how to use variadic arguments._\n\nFor detailed information, refer to the [**subject of this project**](README_files/printf_subject.pdf).\n\n\t🚀 TLDR: This project consists of coding a library that contains a simplified version \n \t\t of the printf function.\n\n\u003e [!NOTE]  \n\u003e Because of 42 School norm requirements:\n\u003e * Each function can't have more than 25 lines of code.\n\u003e * All variables are declared and aligned at the top of each function.\n\u003e * Project should be created just with allowed functions otherwise it's cheating.\n\n## 📑 Supported Specifiers\n\nThese specifiers are supported by my printf implementation.\n\n| Specifier  | Short Description                                         |\n|:----------:|:---------------------------------------------------------:|\n| %c         | Print a single character.                                 |\n| %s         | Print a string of characters.                             |\n| %p         | The void * pointer argument is printed in hexadecimal.    |\n| %d         | Print a decimal (base 10) number.                         |\n| %i         | Print an integer in base 10.                              |\n| %u         | Print an unsigned decimal (base 10) number.               |\n| %x         | Print a number in hexadecimal (base 16), with lowercase.  |\n| %X         | Print a number in hexadecimal (base 16), with uppercase.  |\n| %%         | Print a percent sign.                                     |\n\n## 👨‍💻 Usage\n### Requirements\n\nThe library is written in C language and thus needs the **gcc compiler** and some standard **C libraries** to run.\n\n### Instructions\n\n**1. Compiling the library**\n\nTo compile the library, run:\n\n```shell\n$ cd path/to/printf \u0026\u0026 make\n```\n\n**2. Using it in your code**\n\nTo use the library functions in your code, simply include its header:\n\n```C\n#include \"ft_printf.h\"\n```\nand, when compiling your code, add the required flags:\n\n```shell\n-lftprintf -L path/to/libftprintf.a -I path/to/ft_printf.h\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpetrosy%2F42-printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpetrosy%2F42-printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpetrosy%2F42-printf/lists"}