This repository contains my submission to the 42 Printf project for 42 School.
The goal of this project is to create a library that provides printf
like utility functions.
The libftprintf library is a collection of formatted output functions inspired by the standard printf
function.
It encompasses a variety of variations, each serving a specific purpose:
ft_printf
andft_vprintf
: Format and print data to the console.ft_dprintf
andft_vdprintf
: Format and write data to a file descriptor.ft_sprintf
andft_vsprintf
: Format and store output in a string buffer.ft_asprintf
andft_vasprintf
: Dynamically allocate memory for formatted output as a string.
Warning
During the 42 curriculum you are required to develop and use your libftprintf library.
To use the libftprintf library, follow these steps:
- Clone this repository to your local machine.
- Navigate to the repository's root directory.
- Run
make
to compile the library.
A compiled library named libftprintf.a
will be generated. You can link this library with your C programs to access the provided functions.