An open API service indexing awesome lists of open source software.

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

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.


GitHub code size in bytes
Number of lines of code
Code language count
GitHub top language
GitHub last commit


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)