The aim of this project was to create our own printf function from scratch. This included string, integer and float conversions with flags such as #, 0, - and +.
Functions we were allowed to use:
writemallocfreeexit- functions included in
<stdarg.h>
Everything else was coded entirely from scratch.
-
%c,%s,%pconversions. -
%d,%i,%o,u,%x, and%Xconversions withhh,h,llandlflags. -
%fconversion withlandLflags. -
%%, prints a literal % character -
#,0,-,+and space flags. -
Minimum field-width.
-
Precision
Format syntax:
%[parameter][flags][width][.precision][length]type
-
ft_fprintfPrints to specified file descriptor. -
ft_sprintfReturns the string instead of printing.