This project consists of implementing a custom version of the C printf function.
%c
- Prints a single character
%s
- Prints a string
%p
- Prints a pointer address
%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 and enter it:
git clone https://github.com/reomelo/42Porto-ft_printf.git && cd 42Porto-ft_printf
2- Run make
and compile your program with libftprintf.a
:
make && cc -Wall -Wextra -Werror main.c libftprintf.a
make
or make all
- compiles the project
make clean
- wipes all object files
make fclean
- deletes libftprintf.a and all object files
make re
- fclean + all