Skip to content

This library contains ft_printf, a function that will mimic the real printf function.

Notifications You must be signed in to change notification settings

daisvke/printf_linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

printf_linux

libftprintf.a is a library that contains ft_printf, a function that will mimic the real printf function.

Install

git clone --recursive git@github.com:daisvke/printf_linux.git
make

Description

  • The difference with the mac version of printf is how 'null' values are printed
  • The function is declared as follows :
    int ft_printf(const char *, ...);
    
  • the attribute mechanism in the header allows us to attach characteristics to function declarations to allow the compiler to perform more error checking:
    __attribute__((format (printf, 1, 2)));
    

  • It does not take care of the buffer management like the real printf.
  • It will manage the following conversions: cspdiouxX%n.
  • It will manage any combination of the following flags: '-0.*#' and minimum fieldwidth with all conversions.

About

This library contains ft_printf, a function that will mimic the real printf function.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published