Simple implementation of printf function in C
%cPrints a single character.%sPrints a string (as defined by the common C convention).%pThe void * pointer argument has to be printed in hexadecimal format.%dPrints a decimal (base 10) number.%iPrints an integer in base 10.%uPrints an unsigned decimal (base 10) number.%xPrints a number in hexadecimal (base 16) lowercase format.%XPrints a number in hexadecimal (base 16) uppercase format.%%Prints a percent sign.
Explanation from 42 School ft_printf subject PDF. Version 9.2