An open API service indexing awesome lists of open source software.

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.

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.