Recoding of printf: in C language, printf is used to write formatted output to the standard output stream, stdout. This project was developed during the Common Core curriculum at 42, introducing the concept of variadic functions.
Usage · Subject · Mandatory · Bonus · License
-
Clone repository
git clone git@github.com:teresa-chow/42-ft_printf.git
-
Go inside project directory and run
make
cd ft_printf make
-
To use the library in your code,
#include
the following header#include "ft_printf.h"
Note
This codebase follows the applicable programming standard at 42, known as the Norm.
Handled conversions:
Format specifier | Description |
---|---|
%c |
Prints a single character. |
%s |
Prints a string of characters. |
%p |
Prints the void * pointer argument in hexadecimal format. |
%d |
Prints a decimal (base 10) number. |
%i |
Prints an integer in base 10. |
%u |
Prints an unsigned decimal number. |
%x |
Prints a number in hexadecimal (base 16) lowercase format. |
%X |
Prints a number in hexadecimal uppercase format. |
%% |
Prints a percent sign. |
This work is published under the terms of 42 Unlicense.