/ft_printf

Because putnbr and putstr aren’t enough

Primary LanguageC

My newest project as a cadet at École 42. This is my own printf function.

Status: Finished ✅🚀 (125%)

AboutFeaturesHow it worksAuthor

💻 About

🖨 The goal of this project was to recode the printf function.

🎯 Briefing

Part Functions
Mandatory Function Managing the following conversions: cspdiuxX%
Bonus 1 Management of any combination of the following flags: '-0.' And minimal field width with all conversions
Bonus 2 Manage all of the following flags: '# +' (yes, one of them is a space)

⚙ Features

Function Behavior
printf Just like the original printf function (man printf), but applying only the flags and types specified in Briefing

🚀 How it works

Clone this repository

git clone https://github.com/prmarquesz/ft_printf.git

Running Makefile

Go to the directory where you cloned and run the command

make

Available Options

Command Usage
make Creates the library (equivalent to make all and make libftprintf.a)
make clean Removes the object files
make fclean Removes the object files and the library
make re Invokes fclean rule and then all

Compilation

Include the header (ft_printf.h) in your main function (#include "ft_printf.h"), and run the command

gcc -Wall -Werror -Wextra main.c libftprintf.a

Running the program

./a.out

👨‍🚀 Author


Paulo Roberto Marques
🚀

Made with ❤️ by Paulo Roberto Marques 👋🏽 Get in Touch!

Linkedin Badge Instagram Badge