- This project is a custom implementation of the
printf
function in C - Handles specifiers:
%c
,%s
,%d
,%i
,%u
,%x
,%X
,%p
, and%%
.
Specifier | Description | Base |
---|---|---|
%c |
Single character | -- |
%s |
String | -- |
%d |
Decimal number | Decimal |
%i |
Integer | Decimal |
%u |
Unsigned Integer | Decimal |
%x |
Lowercase number | Hexadecimal |
%X |
Uppercase number | Hexadecimal |
%p |
Pointer - Memory addr | Hexadecimal |
%% |
Percent sign | -- |
-
includes/
ft_printf.h
- Header file
-
srcs/
ft_printf.c
- ft_printfft_putlstr.c
- Prints stringsft_putlnbr.c
- Prints integersft_putlunbr_base.c
- Prints unsigned numbers in different basesft_putladdr_base.c
- Prints memory addressesft_utils.c
- Utility functionstest.c
- Test file / Main
-
Makefile
Makefile
: Compilation rules
-
subject/
printf_en.pdf
- Subject Enprintf_fr.pdf
- Subject Fr
To compile the library, simply run the make
command:
make
make bonus
make clean
make fclean
make re
At 42 School, most projects must comply with the Norm.