ft_printf is a project in C language that mimics the real printf() function from the libc. The ft_printf() prototype should be:
int ft_printf(const char *, ...);
- Unlike the original
printf()function, you don't have to manage a buffer. - You must handle the following conversions:
cspdiuxX% - Your output will be compared to the original printf() function.
- You must use the
arcommand to create your library. The use of thelibtoolcommand is prohibited. - Your
libftprintf.amust be created at the root of your repository.
%cDisplays a single character.%sDisplays a character string (as defined by the C convention).%pThevoid *pointer argument must be displayed in hexadecimal.%dDisplays a decimal number (base 10).%iDisplays a base 10 integer.%uDisplays an unsigned decimal number (base 10).%xDisplays a number in hexadecimal (base 16) with lowercase letters.%XDisplays a number in hexadecimal (base 16) with uppercase letters.%%Displays a percent sign.
- Support any combination of the following flags: '
-0.' and minimum field width with all conversions. - Support all of the following flags: '
#+' (Yes, space is a valid flag)