Skip to content

Because ft_putnbr() and ft_putstr() aren’t enough

Notifications You must be signed in to change notification settings

RhesusP/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

Because ft_putnbr() and ft_putstr() aren’t enough

forthebadge

Second project for 42 school. We have to recode a simpler printf() function which handles the cspdiuxX% conversions.

Prototype

int ft_printf(const char *str, ...);

Supported format specifiers

Specifier Output
%c a single character
%s a string (as defined by the common C convention)
%p a void * pointer printed in hexadecimal format
%d a decimal (base 10) number
%i an integer in base 10
%u an unsigned decimal (base 10) number
%x a number in hexadecimal lowercase format
%X a number in hexadecimal uppercase format
%% a percent sign

Compilation

The makefile creates a library called libftprintf.a. The following rules are available :

  • make
  • make all
  • make clean
  • make fclean
  • make re

Tests

tripouille results

francinette results

francinette --strict results

About

Because ft_putnbr() and ft_putstr() aren’t enough

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published