The ft_printf project from 42 School involves recreating the standard C library function printf()
. It focuses on building a formatted output function that handles multiple data types and provides formatted string output. This project helps build a deeper understanding of variadic functions, format specifiers, and output formatting in C.
There is no excutable for this project, you just need to make and use the function in your code.
If you are on macOS, make sure you have installed Xcode Command Line Tools.
- Clone this repository
git clone https://github.com/extrymes/42-Printf.git
cd 42-Printf
- Include the header file in your code
#include "path/to/ft_printf.h"
- Make and add the archive to your program compilation
make
cc <file.c> libftprintf.a
You can compile ft_printf_tests.c
to test the function.
We welcome contributions from everyone! Whether you're fixing bugs, adding new features, improving documentation, or simply sharing your ideas, your input is greatly appreciated.
Thanks for visiting and happy coding!