This is a recoding of the printf function, made as an assignment at 1337. It works with the c, s, p, d, i, u, x, X, %.
#clone the project and compile it
git clone https://github.com/Ra-Wo/ft_printf.git && cd ft_printf && make
# Create a main file
touch main.c
/* Example of a main */
#include "ft_printf.h"
int main()
{
char *string = "I love you";
int number = 3000;
ft_printf("%s %d", string, number);
return 0;
}
# Compile the files, example:
gcc main.c libftprintf.a
# Execute your program
./a.out
# Well done!