Skip to content

sshiling/42-ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-ft_printf

My own implementation of the C printf function

ft_printf is the first project of algorithm branch in the study program at School 42 (UNIT Factory).
The main goal is to recode printf C function.

All functions are created in accordance with Norm - the bunch of rules how code should be formatted.

!NOTE
Because of 42 School norm requirements:

  • All variables are declared and aligned at the top of each function
  • Each function can't have more then 25 lines of code
  • C++ style code commenting is forbidden
  • Project should be created just with allowed functions otherwise it's cheating.

General requirements from the task:

  • 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.

My bonus part:

  • More detailed flags management: *
  • Non-existing flags management: %b to print in binary characters
  • Output in color
  • Possibility to work with different file descriptors

More about School 42 you can find here: https://en.wikipedia.org/wiki/42_(school)

About

My own implementation of the C printf function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors