Ft_printf is a 42 Project that aims to mimic the printf function (included in <stdio.h>).
Bonus :
- ~ at 175% faster than original printf (included in <stdio.h>)!.
- Handles multiple file descriptor (use ft_dprintf(int fd, char const format, ...) instead of ft_printf).
- All flags stored on only 14 bits.
- Wildcard Length_modifier (%*) : replaces precision and field_width with parameter in va_list ap.
- print_len with %n.
- displaying errno with %m.
- colors with '%{' (%{red}).
- %f and %F to handle double and float numbers.
git clone https://github.com/BenjaminSouchet/Ft_printf.git ~/Ft_printf
cd ~/Ft_printf
make
If you want to create a quick prog with the static library created before : Add the include in your header.h or in your file ⇣
#include "ft_printf.h"
Then compile just like that ⇣
gcc -I include -o prog yourfile1.c yourfile2.c -L. -lftprintf
And execute it easily ⇣
./prog
This project was done in collaboration with Agav a.k.a Antonin Gavrel
If you want to contact me, or fix / improve this project, just send me a mail at [email protected]