Skip to content

ThomasRobertson/42-ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

Like printf(), just worse.

Line of Code Size License License Norminette Action Norminette Action

SummaryHow It WorkHow To UseLicense

Summary

This function recreates part of printf(). It uses the same system of conversion, but only support "cspdiuxX%".

It does not support any flags.

This project is part of 42 Paris' curriculum. You can check the full subject in the subject pdf included in this repo.

How It Work

This function uses variadic functions to manage an unknown number of arguments.

How To Use

Clone this GitHub repos

git clone https://github.com/ThomasRobertson/42-ft_printf

Use the provided Makefile to compile the library (using the system's cc)

make

This will create a library, libftprintf.a, containing the function in the libft folder and the ft_printf function.

In the version that was latter integrated into my personal libft, some function names were changed to minimize the risk of collision by integrating this library into a bigger project or with other library.

License

MIT