Skip to content

Dprof-code/printf

Repository files navigation

0x11. C - printf

This is a collaboration project between Adedamola Olawale and Fashola Mueenat for the ALX Software Engineering program. This project aims to build a custom implementation of the C printf function. The printf function is responsible for formatted output in C, allowing various types of data to be printed with different formatting options.

Project Overview

The objective of this project is to create a custom printf function, similar to the one defined in the C stdio.h library. The function should be able to take in various arguments and print formatted output to the console. The function will be implemented in C programming language.

Project Structure

The project is organized as follows:

  • test/main.c: The main program to test the _printf function.
  • _printf.c: The implementation of the _printf function.
  • main.h: The header file containing function prototypes and any necessary macros or constants.
  • There are several other helper functions(reusable functions) and functions for every of the printf function.

How to Use

To build and run the project, follow these steps:

  1. Clone the project repository:

git clone https://github.com/Dprof-code/printf.git

  1. Compile using gcc, using the options -Wall -Werror -Wextra -pedantic -std=gnu89

gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c ./test/main.c -o printf

  1. Run the executable:

./printf

Compile and Run snippet

Code Run Snippet

Contributions

Contributions to this project are welcome! If you have any improvements, bug fixes, or new features to propose, please open an issue or submit a pull request.

Licence

This project is licensed under the MIT License

Project Duration

wakatime

About

This project is a custom implementation of the C `printf` function. It aims to replicate the functionality and behavior of the original `printf` function, allowing formatted output with various data types and formatting options.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages