Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/teresa-chow/42-ft_printf
- Owner: teresa-chow
- License: other
- Created: 2023-11-17T13:10:56.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-08T19:52:01.000Z (9 months ago)
- Last Synced: 2024-02-08T20:54:33.961Z (9 months ago)
- Topics: 42, 42born2code, 42cursus, 42porto, 42school
- Language: C
- Homepage:
- Size: 1.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 compilation1. 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)