Skip to content

avan-dam/printf

Repository files navigation

printf

This project is pretty straight forward. You will recode printf. You will mainly learn how to use variadic arguments.

Subject:

Constraints are as follows:

  • The prototype of ft_printf should be int ft_printf(const char *, ...);
  • You have to recode the libc's printf function
  • It must not do the buffer management like the real prinft
  • It will manage the following conversions: cspiuxX%
  • It will manage any combination of the following flags: ;-0.'* and a minimum field width with all conversions
  • It will be compared with the real printf

Usage:

To run the program type the following in terminal

git clone https://github.com/avan-dam/printf.git
cd printf
make

Testing:

I have created a simple main for testing as follows

Screenshot 2021-07-01 at 11 41 57

Feel free to edit this main to further compare the results of printf with the version I have created (ft_printf)

Example of running my main to test can be seen below.

Screenshot 2021-07-01 at 11 43 34

Project passed with 100/100

About

This project is pretty straight forward. You will recode printf. You will mainly learn how to use variadic arguments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors