Skip to content

LeonMoreno/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 ft_printf

GitHub code size in bytes Number of lines of code Code language count GitHub top language GitHub last commit

💡 About the project

🚀 TLDR: This project is pretty straightforward, you have to recode printf.
You will learn what is and how to implement variadic functions. 

Once you validate it, you will reuse this function in your future projects.

Screenshots

Testing the ft_printf with paulahemsi / ft_printf

Deep understanding of data types (click full spreadsheet)

Key points:

  • Learn a highly interesting new concept in C programming: variadic functions.
  • C Advanced Pointers.
  • system calls in C.
  • Unix logic.
  • Memory management anomalies in C.

Objectives:

  • Write a library that contains ft_printf(), a function that will mimic the original printf()
  • recode printf.

Implement the following conversions:

conversions TYPE
%c character
%s string
%p void * pointer hex format
%d decimal (base 10)
%i integer (base 10)
%u decimal (base 10)
%x hexadecimal (base 16) lowercase format
%X hexadecimal (base 16) uppercase forma
%b Print bits
%% Prints a percent sign

🛠️ Usage

Instructions

Commande Actions
make Compile the .c and create libftprintf.a
make clean Delete the .o.
make flcean Delete the .o and libftprintf.a
make re Executed fclean and make.
make norm Verification with the norminettes.

Releases

No releases published

Packages

No packages published