The third project on the 42sp fundamentals track, Ft_Printf, is based on the creation of a function that mimics the original behavior of printf(), from the Standard Input / Output library. This project's main objective is to introduce the use of variadic parameters, in addition to reinforcing concepts such as compilation with folder structure, recursive functions, and more.
ft_printf.c
- main functions (project implementation)ft_putchar.c
- function to print a character in the stdinft_putnbr_base.c
- function to convert a number to the desired baseft_putptr.c
- function to prints an address in hexadecimal baseft_putstr.c
- function to print a string in the stdin
ft_printf_bonus.c
- main functions (project implementation)ft_putchar_bonus.c
- function to print a character in the stdinft_puthexa_bonus.c
- function to convert a number to hexadecimal base, and print it with or without '#'ft_putnbr_base_bonus.c
- function to convert a number to the desired baseft_putplus_space_bonus.c
- function to print a number in decimal base with or without '+' or 'space'ft_putptr_bonus.c
- function to prints an address in hexadecimal baseft_putstr_bonus.c
- function to print a string in the stdin
- Make sure you clone the repository with the following command:
$> git clone git@github.com:ArthurSobreira/42_ft_printf.git
- Once cloned, to compile a simple test rule, run one of the following commands:
$> make run_m (mandatory tests)
$> make run_b (bonus tests)