My own implementation of printf
, from the C Standard Library. It's man page can be found here.
My printf has to be compatible with these conversions:
%c
, for a single character;%s
, for a "string";%d
and%i
, for integers in base 10;%u
, for an unsigned decimal;%x
and%X
, for hexadecimal numbers in lower and uppercase respectively;%p
, for pointers (the memory addess is prefixed with Ox);%%
, for the "%" sign.
I also found this video very useful.