ft_printf is a custom version of the standard C function printf. It works like printf but only supports a few specific format specifiers. This project is part of the 42 School program and focuses on clear coding and low-level programming.
%c: Prints a single character.
%s: Prints a string.
%p: Prints a pointer address in hexadecimal format.
%d: Prints a decimal (base 10) number.
%i: Prints an integer in base 10.
%u: Prints an unsigned decimal (base 10) number.
%x: Prints a number in hexadecimal (base 16) lowercase.
%X: Prints a number in hexadecimal (base 16) uppercase.
%%: Prints a percent sign.
Recreates the functionality of printf for the above specifiers. Utilizes variadic functions (va_start, va_arg, va_end) to handle dynamic arguments. Built as a static library libftprintf.a. Relies on functions from libft for core operations.
make
gcc main.c -L. -lftprintf -o my_program
ft_printf("Hello, %s! You are number %d.\n", "world", 42);