Skip to content

A recreation of the C printf function. This project supports various format specifiers (%d, %s, %x, etc.) and teaches variadic functions, buffer management, and formatted output without relying on the standard library.

Notifications You must be signed in to change notification settings

Aztaban/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

📚 Overview

This project is a reimplementation of the C standard library function printf. The goal is to create your own version that handles basic formatting.

✅ Supported Format Specifiers

  • %c – character
  • %s – string
  • %p – pointer (address)
  • %d / %i – signed integer
  • %u – unsigned integer
  • %x / %X – hexadecimal (lower/upper)
  • %% – literal percent sign

🧪 Compilation

cc -Wall -Wextra -Werror ft_printf.c ft_utils.c main.c

📁 Files

  • ft_printf.c
  • ft_utils.c
  • ft_printf.h

👤 Author

Created and maintained by Martin Justa as part of the 42 school curriculum.

About

A recreation of the C printf function. This project supports various format specifiers (%d, %s, %x, etc.) and teaches variadic functions, buffer management, and formatted output without relying on the standard library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published