ft_printf is a 42 project that teaches about variable-length function calls. This project is a great asset for the later projects as it is much simpler and more versatile than the write function. ft_printf is a simplified replica of the original printf function, it can handle the most essential data type conversions and prints them to the standart output.
%s ==> String
%c ==> Character
%d ==> Decimal
%i ==> Integer
%u ==> Unsigned Decimal
%p ==> Pointer Address
%x ==> Hex value (lowercase)
%X ==> Hex value (uppercase)You can simply run make and the project will compile to a static library called ft_printf.a as well as an executable called ft_printf.
The executable will simply run a demonstration of all conversions.
To use ft_printf in your own project compile the ft_printf.a together with your source files and add the ft_printf.h header to your headers.