The ft_printf
project is the second project in the 42 network curriculum. It is a custom implementation of the printf function in C, offering a versatile and efficient solution for formatting output.
- Supports a wide range of format specifiers and modifiers.
- Precision, width, and length modifiers for precise formatting control.
- Basic color formatting for improved output readability.
- Modular and extensible design for easy integration into various C projects.
-
Clone the Repository
git clone https://github.com/haytham-hammioui/42_Ft_printf_1337.git ft_printf
-
Compile the Library Navigate to the
ft_printf
directory and runmake
. This will compile the library and produce alibftprintf.a
file.cd ft_printf make
To use ft_printf
in your C projects:
-
Include the
ft_printf
header file in your C source files.#include "ft_printf.h"
-
Compile your project along with
libftprintf.a
. For example:gcc -o your_program your_source_files libftprintf.a
Contributions to ft_printf
are welcome! Whether you've found a bug, have a feature request, or want to contribute code:
- Fork the repository.
- Create a new branch for your changes.
- Add your contributions.
- Push your branch and open a pull request against the
ft_printf
repository.