- Introduction 🌟
- Features ✨
- Installation ⚙️
ft_printf is a project from the 42 curriculum that challenges students to implement their own version of the famous printf function in C. The project aims to deepen students' understanding of string manipulation, formatting, and advanced C concepts.
- Supports variable argument lists (va_args) to handle a dynamic number of arguments.
- Supports a wide range of format specifiers, provides accurate and reliable conversion and formatting for different data types :
%c
Prints a single character.%s
Prints a string (as defined by the common C convention).%p
The void * pointer argument has to be printed 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 format.%X
Prints a number in hexadecimal (base 16) uppercase format.%%
Prints a percent sign.
To use the Libft library in your C projects, follow these steps:
- Clone the ft_printf repository to your local machine using the following command:
git clone https://github.com/Clmntsnd/01-ft_printf
- Change into the ft_printf directory:
cd 01-ft_printf
- Compile the library by running the provided Makefile:
make