Skip to content

SLargo18/printf

Repository files navigation

🖨️ ft_printf

📌 Description

ft_printf is a reimplementation of the standard printf function in C, handling formatted output with variable arguments. It reproduces most of the original functionality while managing output conversion and formatting manually, without using the standard C library functions.

This project deepens your understanding of variadic functions, format parsing, and low-level output operations.


🛠️ Skills Developed

  • Variadic functions with stdarg.h
  • Format string parsing and handling flags
  • Number and string conversion
  • Output to standard output using write()
  • Memory and type safety in C
  • Manual base conversion and precision/width control

✅ Supported Conversions

  • %c – Character
  • %s – String
  • %p – Pointer address
  • %d / %i – Signed decimal integer
  • %u – Unsigned decimal integer
  • %x / %X – Unsigned hexadecimal (lower/upper)
  • %% – Percent sign

⚙️ Compilation

make

About

A custom implementation of the standard `printf` function using variadic arguments in C.

Topics

Resources

Stars

Watchers

Forks