Implementation of the printf function from the standard C library. The project is part of the School 21 curriculum.
This project is a part of the School 21 curriculum. The main goal of this project is to learn how to work with the standard C library functions. The project is a simplified implementation of the printf function from the standard C library. The function is able to print strings, characters, integers, and hexadecimal numbers. The function also supports flags, width, and precision.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them.
gcc >= 7.5.0
make >= 4.1
sudo apt-get install make
sudo apt-get install gccA step by step series of examples that tell you how to get a development env running.
Clone the repository.
git clone https://github.com/LudwigAndreas/ft_libftprintf
cd ft_libftprintfBuild the project.
makeIt will create a library called libftprintf.a.
Explain how to run the automated tests for this system.
make testThe function has the following prototype:
int ft_printf(const char *format, ...);The function supports the following format specifiers:
%c- character%s- string%d- integer%i- integer%u- unsigned integer%x- hexadecimal number%X- hexadecimal number%%- percent sign
This project was developed by:
| LudwigAndreas |
|---|
This project is licensed under the School 21 License - see the LICENSE file for details.