ft_printf is a recreation of the standard printf function in C, developed from scratch without using printf, sprintf, or any similar functions. This implementation is part of advanced C learning and follows the Norminette to ensure clean and structured code.
✅ Supports essential format specifiers
✅ Efficient buffer management for better performance
✅ Compatible with the Libft library
✅ 100% in C with no forbidden functions
| Specifier | Description |
|---|---|
%c |
Prints a character |
%s |
Prints a string |
%p |
Prints a pointer in hexadecimal format |
%d / %i |
Prints a signed integer |
%u |
Prints an unsigned integer |
%x / %X |
Prints a number in hexadecimal (lower/upper case) |
%% |
Prints the % character |
git clone https://github.com/rpaparoni/ft_printf_rpaparoni.git
cd ft_printfmakeThis will generate libftprintf.a, which you can include in any C project.
#include "ft_printf.h"
int main()
{
int num = 42;
ft_printf("The number is: %d\n", num);
return 0;
}gcc main.c -L. -lftprintf -o programThis project is open-source and can be freely used and modified.
🐙 GitHub: rpaparoni