https://github.com/ricvrdv/ft_printf
Project in which I had to recreate the function printf() from the C standard library.
https://github.com/ricvrdv/ft_printf
c-language c-programming header-files hexadecimal makefile pointers-in-c printf string-formatting variadic-function
Last synced: 6 months ago
JSON representation
Project in which I had to recreate the function printf() from the C standard library.
- Host: GitHub
- URL: https://github.com/ricvrdv/ft_printf
- Owner: ricvrdv
- Created: 2024-11-13T19:30:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-05T01:13:33.000Z (7 months ago)
- Last Synced: 2025-07-05T02:44:22.954Z (7 months ago)
- Topics: c-language, c-programming, header-files, hexadecimal, makefile, pointers-in-c, printf, string-formatting, variadic-function
- Language: C
- Homepage:
- Size: 1.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 42 - FT_PRINTF
### SUMMARY
The goal of this project was to recode the original libc function `printf()`.
This custom function had to handle the following conversions:
| specifier | description |
| --------- | ------------------------------------------------------------------- |
| c | prints a single character |
| s | prints a string |
| p | the void * pointer argument has to be printed in hexadecimal format |
| d | prints a decimal (base 10) number |
| i | prints an integer in base 10 |
| u | prints an unsigned decimal (base 10) number |
| x | prints a number in hexadecimal (base 16) lowercase format |
| X | prints a number in hexadecimal (base 16) uppercase format |
| % | prints a percent sign |
----
🐸 Feel free to fork, clone, or contact me for questions or feedback.