Because putnbr and putstr aren’t enough
This project is pretty straight forward. You will recode printf. You will mainly learn how to use variadic arguments.
This project consists of coding a library that contains a simplified version (more
information below) of the printf function.
malloc(), free(), write(), va_start(), va_arg(), va_copy(), va_end()
A small description of the required conversion:
%c
print a single character.%s
print a string of characters.%p
The void * pointer argument is printed in hexadecimal.%d
print a decimal (base 10) number.%i
print an integer in base 10.%u
print an unsigned decimal (base 10) number.%x
print a number in hexadecimal (base 16).%%
print a percent sign.