{"id":25311667,"url":"https://github.com/rogeriols/ft_printf-42sp","last_synced_at":"2025-04-07T12:20:11.366Z","repository":{"id":195427513,"uuid":"692834778","full_name":"RogerioLS/Ft_Printf-42sp","owner":"RogerioLS","description":"This project consists of coding a library that contains a simplified version of the printf function.","archived":false,"fork":false,"pushed_at":"2024-01-28T17:27:45.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T14:53:35.754Z","etag":null,"topics":["42","42-projects","printf","printf-42","school42"],"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/RogerioLS.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}},"created_at":"2023-09-17T18:14:39.000Z","updated_at":"2023-09-17T21:58:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"648174db-e4d8-4319-8cd6-bd68da555ab2","html_url":"https://github.com/RogerioLS/Ft_Printf-42sp","commit_stats":null,"previous_names":["rogeriols/ft_printf-42sp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FFt_Printf-42sp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FFt_Printf-42sp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FFt_Printf-42sp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FFt_Printf-42sp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RogerioLS","download_url":"https://codeload.github.com/RogerioLS/Ft_Printf-42sp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648974,"owners_count":20972945,"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-projects","printf","printf-42","school42"],"created_at":"2025-02-13T14:53:37.033Z","updated_at":"2025-04-07T12:20:11.333Z","avatar_url":"https://github.com/RogerioLS.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = center\u003e\n\n# :clipboard: Printf | 42 SP\n\n![Norminette](https://github.com/RogerioLS/Ft_Printf-42sp/actions/workflows/norminette.yml/badge.svg)\n![Build](https://github.com/RogerioLS/Ft_Printf-42sp/actions/workflows/build.yml/badge.svg)\n![Static Badge](https://custom-icon-badges.demolab.com/badge/FT_PRINTF-42-blue?logo=repo)\n![42 São Paulo](https://custom-icon-badges.demolab.com/badge/42-SP-1E2952)\n![License](https://custom-icon-badges.demolab.com/github/license/RogerioLS/Ft_Printf-42sp?logo=law\u0026color=dark-green)\n![Code size in bytes](https://custom-icon-badges.demolab.com/github/languages/code-size/RogerioLS/Ft_Printf-42sp?logo=file-code\u0026color=dark-green)\n![Top language](https://custom-icon-badges.demolab.com/github/languages/top/RogerioLS/Ft_Printf-42sp?color=dark-green)\n![Last commit](https://custom-icon-badges.demolab.com/github/last-commit/RogerioLS/Ft_Printf-42sp?logo=history\u0026color=dark-green)\n![Repo size](https://custom-icon-badges.demolab.com/github/repo-size/RogerioLS/Ft_Printf-42sp?logo=database)\n![Languages](https://custom-icon-badges.demolab.com/github/languages/count/RogerioLS/Ft_Printf-42sp?logo=command-palette\u0026color=red)\n![GitHub repo file count (file type)](https://custom-icon-badges.demolab.com/github/directory-file-count/RogerioLS/Ft_Printf-42sp%2Fsources?logo=file\u0026label=files%20sources\u0026color=8602b1)\n![Discord](https://custom-icon-badges.demolab.com/discord/1114673462859006044?\u0026logo=comments\u0026label=testemunhas%20de%20vim\u0026color=ffbe3a)\n\u003c/div\u003e\n\n---\n\n\u003cdiv align = center\u003e\n\n![](https://game.42sp.org.br/static/assets/achievements/ft_printfe.png)\n\n\u003c/div\u003e\n\n- Actual Status : finished.\n- Result        : Approved with 105 points by moulinette (the 42 tester) ✅\n  \n  Prinft is the third project at 42.\nThe purpose of this project is to repeat the behavior of the printf function but we only deal with some cases.\n\n#### We need to implement the following conversions:\n\n• %c Prints a single character.  \n• %s Prints a string (as defined by the common C convention).  \n• %p The void * pointer argument has to be printed in hexadecimal format.  \n• %d Prints a decimal (base 10) number.  \n• %i Prints an integer in base 10.  \n• %u Prints an unsigned decimal (base 10) number.  \n• %x Prints a number in hexadecimal (base 16) lowercase format.  \n• %X Prints a number in hexadecimal (base 16) uppercase format.  \n• %% Prints a percent sign.  \n\n## 📝 Functions\n\n| Files | Description |\n| :------: | :---------: |\n| ``ft_printf.c`` | Contains the principal function: the function who deal with the type of data. Also contains the function who checks if is a conversion to deal with and the functions to deal with char or strings|\n| ``ft_printf.h`` | The header with functions libraries and prototypes. |\n| ``ft_putchar.c`` | Write sigle character. |\n| ``ft_puthex.c`` | Prints a number in hexadecimal (base 16) lowercase and uppercase format. |\n| ``ft_putnbr.c`` | Outputs the number interger. |\n| ``ft_putptr.c`` | Outputs the pointer adress 'ptr' in the standard output. |\n| ``ft_putstr.c`` | Goes through the entire array until '\\0', if it does not exist, returns null. |\n| ``Makefile`` | The automatizated compilator|\n\n\n## 🛠️ Usage\n\nIn order to use this static library in your project, you must download this repository into your pc and compile the library\n\n``` shell\n$\u003e git clone https://github.com/RogerioLS/Ft_Printf-42sp\n$\u003e cd Ft_Printf-42sp\n$\u003e make\n```\n\nIn your code, simply include its header:\n\n``` C\n#include \"libftprintf.h\"\n```\nAnd, when compiling your code, add the required flags:\n\n``` shell\n$\u003e make \u0026\u0026 cc -w -o your_file your_file.c -L./ -lftprintf \u0026\u0026 ./your_file\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogeriols%2Fft_printf-42sp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogeriols%2Fft_printf-42sp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogeriols%2Fft_printf-42sp/lists"}