{"id":19494012,"url":"https://github.com/badreddinkaztaoui/fq_printf","last_synced_at":"2025-02-25T20:23:37.258Z","repository":{"id":160375349,"uuid":"635238613","full_name":"badreddinkaztaoui/fq_printf","owner":"badreddinkaztaoui","description":"Printf project from 42 Network","archived":false,"fork":false,"pushed_at":"2023-05-02T11:16:35.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T09:15:57.659Z","etag":null,"topics":["1337school","42school","c","c-language","printf","printf-42"],"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/badreddinkaztaoui.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":"2023-05-02T09:10:15.000Z","updated_at":"2024-09-29T22:12:32.000Z","dependencies_parsed_at":"2023-05-25T07:00:30.633Z","dependency_job_id":null,"html_url":"https://github.com/badreddinkaztaoui/fq_printf","commit_stats":null,"previous_names":["badreddinkaztaoui/fq_printf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badreddinkaztaoui%2Ffq_printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badreddinkaztaoui%2Ffq_printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badreddinkaztaoui%2Ffq_printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badreddinkaztaoui%2Ffq_printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badreddinkaztaoui","download_url":"https://codeload.github.com/badreddinkaztaoui/fq_printf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240739521,"owners_count":19849789,"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","42school","c","c-language","printf","printf-42"],"created_at":"2024-11-10T21:28:08.193Z","updated_at":"2025-02-25T20:23:37.232Z","avatar_url":"https://github.com/badreddinkaztaoui.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ft_printf\n\n`ft_printf` is a custom implementation of the C standard library function `printf`. It allows you to format and print text to the console or a file using a variety of format specifiers.\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Function Documentation](#function-documentation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Getting Started\n\nTo use `ft_printf`, you'll need to download the source code and compile it into a library. Here's how to get started:\n\n1. Clone the repository: `git clone https://github.com/badreddinkaztaoui/ft_printf.git`\n2. Compile the library: `make`\n3. Link the library to your project: `-L/path/to/libftprintf.a`\n\n## Usage\n\nOnce you've linked the library to your project, you can use `ft_printf` just like you would use `printf`. Here are some examples of how to use `ft_printf`:\n\n```c\n#include \"ft_printf.h\"\n\nint main() {\n  int num = 42;\n  char str[] = \"hello\";\n\n  ft_printf(\"The answer is %d\\n\", num);\n  ft_printf(\"The string is %s\\n\", str);\n\n  return 0;\n}\n```\n\nThis will output:\n\n```\nThe answer is 42\nThe string is hello\n```\n\n`ft_printf` supports a variety of format specifiers, including `%d` for integers, `%s` for strings, `%c` for characters, `%p` for pointers, `%f` for floating-point numbers, and more. See the [Function Documentation](#function-documentation) section for a full list of format specifiers.\n\n## Function Documentation\n\n`ft_printf` consists of several functions that work together to format and print text. Here's a brief overview of each function:\n\n- `ft_printf`: The main function that prints formatted text to the console or a file. It takes a format string and a variable number of arguments, and returns the number of characters printed.\n\n- `ft_printres`: A helper function that parses the format string and extracts any formatting flags, such as the minimum field width or precision.\n\n- `ft_putchar_len`: A helper function that prints a single character.\n\n- `ft_putstr_len`: A helper function that prints a null-terminated string.\n\n- `ft_putnbr_len`: A helper function that prints a decimal integer.\n\n- `ft_putunbr_len`: A helper function that prints an unsigned decimal integer.\n\n- `ft_puthexa`: A helper function that prints a hexadecimal integer.\n\n- `ft_putadress`: A helper function that prints a memory address as a hexadecimal integer.\n\n- `ft_str`: A helper function that takes a string as argument and return his length.\n\nSee the [ft_printf.h](https://github.com/badreddinkaztaoui/ft_printf/blob/main/ft_printf.h) header file for a full list of functions and their parameters.\n\n## Contributing\n\nIf you'd like to contribute to `ft_printf`, you can open a pull request on GitHub. Please make sure your code follows the [Coding Standards](https://github.com/badreddinkaztaoui/ft_printf/blob/master/docs/coding_standards.md) and includes tests for any new features or bug fixes.\n\n## License\n\n`ft_printf` is released under the [MIT License](https://github.com/badreddinkaztaoui/ft_printf/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadreddinkaztaoui%2Ffq_printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadreddinkaztaoui%2Ffq_printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadreddinkaztaoui%2Ffq_printf/lists"}