This is my solution of ft_printf of 42 school.
This was my second ever project of 42 school.
The quality of the code may look very bad, but it was the best i was able to do back then.
By now (6 months later) i would like to believe that the way i code has changed a bit.
But i will still leave this project in its original state, since this is how i solved the project.
Today i would definitley solve it differently.
This is not a complete programm, but rather a library, which when compiled can be used just as any other library.
- run
make
ormake all
in the root of this directory - inlcude
libftprintf.h
into your file that you want to useft_printf
in - when compiling, include
libftprintf.a
into it likegcc main.c libftprintf.a
- enjoy some of the behaviour of printf with only using the external functions stated in the subject.pdf
This ft_printf does not copy the whole printf function, but only limited parts of it.
This includes the following format specifiers:
- %c
- %s
- %p
- %d
- %i
- %u
- %x
- %X
- %%
And any combination of the following flags:
-
0
.
- minimum field width