Libc's printf() basic replica.
%c
- Prints a single character
%s
- Prints a string
%p
- Prints a pointer adress
%d
or %i
- Prints a signed integer
%u
- Prints an unsigned integer
%x
or %X
- Prints an unsigned integer in hexadecimal format
1- Clone this repository
git clone https://github.com/Kuninoto/42_ft_printf
2- Run make
make
3- Run make clean
so that you don't keep the object files that you won't need anymore
make clean
4- Compile your project (e.g. main.c
) with your new libftprintf.a
cc -Wall -Wextra -Werror main.c libftprintf.a
Being ft_printf()
an addition to the personal library started on Libft, the provided Makefile compiles them together.
make
or make all
- Makes libftprintf.a
make clean
- Deletes all the resulting object files
make fclean
- Deletes libftprintf.a
and all the resulting object files
make re
- Deletes everything (object files and libftprintf.a
) and rebuilds libftprintf.a
At 42School, almost every project must be written in accordance to the "Norm", the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.
Made by Nuno Carvalho (Kuninoto) | [email protected]