Ft_printf is a 42 Project that aims to mimic the printf function (included in <stdio.h>).
Download and compile this lib
git clone https://github.com/superuzer/ftprintf.git ~/Ft_printf
cd ~/Ft_printf
make
Now you can use libftprintf.a library with your program. Add include in your header file.
#include "ft_printf.h"