Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/teresa-chow/42-ft_printf

Recoding of C function printf(), developed during Common Core curriculum at 42.
https://github.com/teresa-chow/42-ft_printf

42 42born2code 42cursus 42porto 42school

Last synced: 8 days ago
JSON representation

Recoding of C function printf(), developed during Common Core curriculum at 42.

Awesome Lists containing this project

README

        

# ft_printf
[![42 School: Rank 1](https://img.shields.io/badge/42%20School-Rank%201-%2315bbbb)](https://www.42network.org/)

_Recoding of printf: in C language, printf is used to write formatted output to the standard output stream, stdout. This project was developed during the Common Core curriculum at 42, introducing the concept of variadic functions._
___

### Table of contents
[Usage](#compass-usage) · [Subject](#book-subject) · [Mandatory](#mandatory-part) · [Bonus](#bonus-part) · [License](#license)

___

# :compass: Usage
## Setup and compilation

1. Clone repository
```bash
git clone [email protected]:teresa-chow/42-ft_printf.git
```

2. Go inside project directory and run `make`
```bash
cd ft_printf
make
```

3. To use the library in your code, `#include` the following header
```c
#include "ft_printf.h"
```

# :book: Subject
:page_facing_up: [ft_printf subject EN [PDF]](./en_ftprintf_2023.pdf)

>[!NOTE]
>This codebase follows the applicable programming standard at 42, known as the Norm.

Mandatory part



Handled conversions:

Format specifier | Description
:--:|--
`%c` | _Prints a single character._
`%s` | _Prints a string of characters._
`%p` | _Prints the_ `void *` _pointer argument in hexadecimal format._
`%d` | _Prints a decimal (base 10) number._
`%i` | _Prints an integer in base 10._
`%u` | _Prints an unsigned decimal number._
`%x` | _Prints a number in hexadecimal (base 16) lowercase format._
`%X` | _Prints a number in hexadecimal uppercase format._
`%%` | _Prints a percent sign._

___

### License
This work is published under the terms of [42 Unlicense](./LICENSE).

[⬆ back to top](#42-ft_printf)