https://github.com/iker-gonzalez/ft-printf
Recoding of the simplified version of the printf function in C
https://github.com/iker-gonzalez/ft-printf
42cursus c printf variadic-function
Last synced: 3 months ago
JSON representation
Recoding of the simplified version of the printf function in C
- Host: GitHub
- URL: https://github.com/iker-gonzalez/ft-printf
- Owner: iker-gonzalez
- License: mit
- Created: 2022-06-04T10:03:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-05T11:11:37.000Z (over 3 years ago)
- Last Synced: 2025-03-10T23:26:31.711Z (11 months ago)
- Topics: 42cursus, c, printf, variadic-function
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
42cursus' ft_printf
Development repo for 42cursus' ft_printf project
For further information about 42cursus and its projects, please refer to 42cursus repo.
About
·
Usage
·
Testing
---
## 🗣️ About
> This project consists of coding a library that contains a simplified version of the printf function.
For detailed information, refer to the [**subject of this project**](https://github.com/iker-gonzalez/42_cursus/blob/main/_PDFs/en.subject_ft_printf.pdf)
## 🛠️ Usage
### Requirements
The library is written in C language and thus needs the **`gcc` compiler** and some standard **C libraries** to run.
### Instructions
**1. Compiling the library**
To compile the library, run:
```shell
$ cd path/to/ft_printf && make
```
**2. Using it in your code**
To use the library functions in your code, simply include its header:
```C
#include "ft_printf.h"
```
and, when compiling your code, add the required flags:
```shell
-lftprintf -L path/to/libftprintf.a -I path/to/ft_printf.h
```
## Testing
You can use any of this third-party testers:
* [gavinfielder/pft](https://github.com/gavinfielder/pft)
* [Mazoise/42TESTERS-PRINTF](https://github.com/Mazoise/42TESTERS-PRINTF)
* [HappyTramp/ft_printf_test](https://github.com/HappyTramp/ft_printf_test)
* [t0mm4rx/ftprintfdestructor](https://github.com/t0mm4rx/ftprintfdestructor)
* [charMstr/printf_lover_v2](https://github.com/charMstr/printf_lover_v2)