Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ludwigandreas/ft_libftprintf
Library with added ft_printf
https://github.com/ludwigandreas/ft_libftprintf
Last synced: 4 days ago
JSON representation
Library with added ft_printf
- Host: GitHub
- URL: https://github.com/ludwigandreas/ft_libftprintf
- Owner: LudwigAndreas
- License: other
- Created: 2021-11-30T17:59:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T16:59:46.000Z (7 months ago)
- Last Synced: 2024-11-07T12:47:42.347Z (about 2 months ago)
- Language: C
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Libft ft_printf
Implementation of the printf function from the standard C library. The project is part of the School 21 curriculum.
## Table of Contents
- [About](#about)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installing](#installing)
- [Running the tests](#running-the-tests)
- [Usage](#usage)
- [Built Using](#built-using)
- [Authors](#authors)
- [Acknowledgements](#acknowledgements)
- [License](#license)## About
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.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
What things you need to install the software and how to install them.
```text
gcc >= 7.5.0
make >= 4.1
``````bash
sudo apt-get install make
sudo apt-get install gcc
```### Installing
A step by step series of examples that tell you how to get a development env running.
Clone the repository.
```bash
git clone https://github.com/LudwigAndreas/ft_libftprintfcd ft_libftprintf
```Build the project.
```bash
make
```It will create a library called `libftprintf.a`.
## Running the tests
Explain how to run the automated tests for this system.
```bash
make test
```## Usage
The function has the following prototype:
```c
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## Built Using
- [C](https://en.wikipedia.org/wiki/C_(programming_language)) - Programming language
- [Make](https://en.wikipedia.org/wiki/Make_(software)) - Build automation tool
- [GCC](https://en.wikipedia.org/wiki/GNU_Compiler_Collection) - Compiler## Authors
This project was developed by:
| |[LudwigAndreas](https://github.com/LudwigAndreas)|
| --- | --- |## Acknowledgements
- [School 21](https://21-school.ru/) - Educational institution
- [42](https://www.42.fr/) - Educational institution## License
This project is licensed under the School 21 License - see the [LICENSE](LICENSE) file for details.