Skip to content

Printf: My own printf function. A C project that aims to recreate the functionality of the printf function. It supports conversions "cspdiuxX%" and flags "-0.*". Implemented using functional programming techniques.

License

GitFlaviobc/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Printf - My own printf function

📋 Table of contents

Intro - Goal - Tecnology - Functionality - How to use - Tests - Update - Author

Intro

  • This is the first "big" project where I need to get all the previous knowledge and recreate the printf function.
  • It is an introduction to concept of "variadic function" and to some conversions.
  • It makes you understand better the conversions and flags inside the original printf function.
  • I decided to learn and use "functional programming", once I realized that the things are getting bigger.
  • I am still learning about "functional porgramming" but I am "forcing" myself to apply it and improve my code structure.
  • Once again I used other people tests but this time I started to create my own main functions and do my individual tests to find specific bugs on the code.
  • *(On extreme errors caused by inputs of the user) My ft_printf can have different behaviour from original printf depending on the system.

📋

🎯 Goal

  • ft_printf goal is to recreate the original printf function but not all the flags.
  • Conversions cspdiuxX%
  • Flags -0.*
  • Introduces new concepts of static variable and file descriptor.

📋

🛠️ Tecnology

  • Language: C
  • VS code
  • WSL ubuntu
  • Norminette 42 (code norm used by école 42)
  • Remote SSH access to iMac for final tests.

📋

📚 Functionality

Flow Chart 01 Flow Chart 02

📋

📖 How to use

  • Clone the repository
git clone https://github.com/GitFlaviobc/ft_printf.git

Inside the Project folder:

  • to create the library
make

or

make all
  • to delete all obj (.o) files created
make clean
  • to delete all created files
make fclean
  • to delete all files and recreate the library
make re
  • After the creation of the library I can use ft_printf the same way I use the original printf. With the limitations of the conversions and flags that I did not implemented.

📋

👨‍💻 Tests

*42 changes the projects from time to time, and the test keep being updated to follow it. So this project may be outdated for the tests.

📋

🆙 Updates

⚠️🚧

📋

😀 Author

Name: Flávio Bonini Campos

Linkedin

📋

About

Printf: My own printf function. A C project that aims to recreate the functionality of the printf function. It supports conversions "cspdiuxX%" and flags "-0.*". Implemented using functional programming techniques.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published