Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/namorgha/ft_printf

This repository provides a C implementation that reproduces the behavior of the printf function, demonstrating custom formatting and output handling.
https://github.com/namorgha/ft_printf

42 c-language printf-42 variadic-functions

Last synced: 3 days ago
JSON representation

This repository provides a C implementation that reproduces the behavior of the printf function, demonstrating custom formatting and output handling.

Awesome Lists containing this project

README

        

![print-variables](https://github.com/user-attachments/assets/9104a02f-0b68-4f9c-b09e-49bdf09e5f68)

---

# ft_printf

ft_printf is a custom implementation of the printf function in C, developed as part of the 42 Network curriculum. This project aims to recreate the functionality of printf to handle various format specifiers and conversion types.

---

# Features

- Implementation of printf function with support for various format specifiers
- Custom handling for different data types
- Extension to support additional format specifiers not included in the standard library

---

# Supported Format Specifiers

ft_printf supports the following format specifiers:

- %c - Character
- %s - String
- %p - Pointer
- %d - Decimal (integer)
- %i - Integer
- %u - Unsigned integer
- %x - Unsigned hexadecimal (lowercase)
- %X - Unsigned hexadecimal (uppercase)
- %% - Literal percent sign

---