This repository contains my custom implementation of the printf
function in C.
The ft_printf
function replicates the behavior of the standard printf
function, allowing formatted output to the standard output stream. This project is implemented in C and follows the conventions and functionality of the standard printf
.
- Supports various format specifiers, including:
%c
for characters%s
for strings%d
and%i
for integers%u
for unsigned integers%x
and%X
for hexadecimal numbers%p
for pointers%%
for the percent sign
To compile the ft_printf
function, you can use the provided Makefile. Run the following command:
make
This will generate the libftprintf.a
library, which you can link with your projects.
ft_printf.c
: Core implementation of theft_printf
function.ft_printf.h
: Header file containing function prototypes and macros.Makefile
: Script to compile the library and clean up object files.
This project is licensed under the MIT License. See the LICENSE file for details.