Write a library that contains ft_printf, a function that will mimic the real printf
The printf() function produces output according to a format as described below. It writes output to stdout - the standard output stream. The overall syntax of a conversion specification is:
%[$][flags][width][.precision][length modifier]conversion
A small description of the required conversion:
%cprint a single character.%sprint a string of characters.%pThe void * pointer argument is printed in hexadecimal.%dprint a decimal (base 10) number.%iprint an integer in base 10.%uprint an unsigned decimal (base 10) number.%xprint a number in hexadecimal (base 16).%Xprint a number in upper case hexadecimal (base 16).%%print a percent sign.
Manage all the following flags:
| Flag | Description |
|---|---|
| # | Prefix the string "0x" or "0X" for x and X conversions. |
| ' ' | Add a single space (' ') in the front of positive numeric conversions. |
| + | Add a plus sign ('+') in the front of positive numeric conversions |
make && cc -w -o tester tester.c -L./ -lftprintf && ./tester