Remake of printf using va_list
- Grade: 100/100
- Keywords: Unix logic
- Skills: Rigor/ Algorithms & AI
%c
print a single character.%s
print a string of characters.%p
the void * pointer argument is printed in hexadecimal.%d
print a decimal number.%i
print an integer in base 10.%u
print an unsigned decimal (base 10) number%x
print a number in hexadecimal (base 16) with lowercase.%X
print a number in hexadecimal (base 16) with uppercase.%%
print a percent sign.-
left-justify within the given field width; Right justification is the default.0
left-pads the number with zeroes (0) instead of spaces when padding is specified..
precision specifies the minimum number of digits to be written.*
the width is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.(space)
if no sign is going to be written, a blank space is inserted before the value.+
forces to preceed the result with a plus or minus sign (+ or -) even for positive numbers. By default, only negative numbers are preceded with a - sign.