Skip to content

rpaparoni/ft_printf_rpaparoni

Repository files navigation

ft_printf - A Custom Implementation of printf

Spanish version 🇪🇸

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.

📌 Features

Supports essential format specifiers
Efficient buffer management for better performance
Compatible with the Libft library
100% in C with no forbidden functions

⚙️ Supported Specifiers

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

🚀 Installation and Usage

1️⃣ Clone the repository

git clone https://github.com/rpaparoni/ft_printf_rpaparoni.git
cd ft_printf

2️⃣ Compile the library

make

This will generate libftprintf.a, which you can include in any C project.

3️⃣ Use it in your code

#include "ft_printf.h"

int main()
{
    int num = 42;
    ft_printf("The number is: %d\n", num);
    return 0;
}

4️⃣ Compile with ft_printf

gcc main.c -L. -lftprintf -o program

📜 License

This project is open-source and can be freely used and modified.

🐙 GitHub: rpaparoni

About

The hole "printf" function recreated on "C". 🖨️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors