The goal of this project is to recreate part of libc function printf. Why? Because students of 42 Network usualy can use only their own libraries and functions. However, it's a great way to learn C.
- You have to manage the following conversions:
csp - You have to manage the following conversions:
diouxXwith the following flags:hh,h,landll - You have to manage the following conversion:
fwith the following flags:landL - You must manage
%% - You must manage the flags
#0-+andspace - You must manage the minimum
field-width - You must manage the
precision
Allowed functions arewrite,malloc,free,exitand the functions of man 3 stdarg. Everything else is forbidden.
Run make && make clean, this will compile libftprintf.a. Include inc/ft_printf.h to your project and use just like printf.
Also you can run ./printf.test for quik view.