🚀 TLDR: This project is pretty straightforward, you have to recode printf.
You will learn what is and how to implement variadic functions.
Once you validate it, you will reuse this function in your future projects.
Testing the ft_printf with paulahemsi / ft_printf
Deep understanding of data types (click full spreadsheet)
- Learn a highly interesting new concept in C programming: variadic functions.
- C Advanced Pointers.
- system calls in C.
- Unix logic.
- Memory management anomalies in C.
- Write a library that contains ft_printf(), a function that will mimic the original printf()
- recode printf.
conversions | TYPE |
---|---|
%c | character |
%s | string |
%p | void * pointer hex format |
%d | decimal (base 10) |
%i | integer (base 10) |
%u | decimal (base 10) |
%x | hexadecimal (base 16) lowercase format |
%X | hexadecimal (base 16) uppercase forma |
%b | Print bits |
%% | Prints a percent sign |
Commande | Actions |
---|---|
make |
Compile the .c and create libftprintf.a |
make clean |
Delete the .o. |
make flcean |
Delete the .o and libftprintf.a |
make re |
Executed fclean and make. |
make norm |
Verification with the norminettes. |