Welcome to my ft_printf
project!
This project was pretty fun, it challenges us to implement a custom version of the printf
function from the C standard library.
The ft_printf
project is designed to deepen your understanding of variadic functions, string formatting, and the inner workings of the printf
function. Key features include:
-
Conversion Specifiers:
- Implement support for various conversion specifiers (
%s
,%d
,%x
, etc.).
- Implement support for various conversion specifiers (
-
Flags and Modifiers:
- Handle flags and modifiers for precise formatting (
-
,0
,*
,.
).
- Handle flags and modifiers for precise formatting (
-
Width and Precision:
- Support minimum field width and precision options.
-
Variadic Arguments:
- Master the use of variadic arguments to handle a variable number of input parameters.
/srcs/
: Contains the source files, including the mainft_printf
function./include/
: Header files, includingft_printf.h
./tests/
: A directory for test cases to validate the functionality of yourft_printf
.
- Clone the repository to your local machine.
- Navigate to the
/srcs/
directory and review the source files. - Compile the project using the provided Makefile (
make
). - Create a test program or use the provided test cases to ensure your
ft_printf
functions correctly.
Special thanks to Ecole 42 for the inspiration and learning opportunity.
Happy coding! 🚀