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