A custom implementation of the C printf
function.
This project provides a reimplementation of the standard C printf
function, supporting formatted output for various data types.
- Supports format specifiers:
%c
,%s
,%p
,%d
,%i
,%u
,%x
,%X
, and%%
- Handles variable argument lists
- Custom utility functions for formatting and output
ft_printf.c
: Main implementation offt_printf
ft_printf_utils.c
: Utility functions used byft_printf
ft_printf.h
: Header file with function prototypesMakefile
: Build instructions
To compile and use ft_printf
:
make
Include ft_printf.h
in your project and link the compiled object files.
#include "ft_printf.h"
int main(void) {
ft_printf("Hello, %s! Number: %d\n", "world", 42);
return 0;
}
This project is released for educational purposes.