/ft_printf

This is a almost complete reproduction of "printf" from <stdio.h> in C language

Primary LanguageC

ft_printf

You have to recode the "printf" function from <stdio.h> in C language

Mandatory part

  • Your function will be called ft_printf and will be prototyped similarly to printf.
  • You won’t do the buffer management in the printf function.
  • You have to manage the following conversions: sSpdDioOuUxXcC
  • You must manage %%
  • You must manage the flags #0-+ and space
  • You must manage the minimum field-width
  • You must manage the precision
  • You must manage the flags hh, h, l, ll, j, et z.
You are allowed to use the following functions:
  • write
  • setlocale
  • malloc
  • free
  • exit
  • The functions of man 3 stdarg
  • Your own library

Usage:

git clone https://github.com/vlkorniienko/ft_printf
cd ft_printf
make test
./ft_printf.out