This project is a copy of the original printf function of C langage.
Supports all these converters, flags and modifiers:
Type | Name |
---|---|
Converters | %d / %s / %p / %i / %u / %x / %X / %c/ %% |
Flags | * / 0 / - / . |
Run make
command to compile the libftprintf library.
Compile your project with libftprintf.a. Don't forget to include "ft_printf.h"
To compile with the repository main:
gcc -Wall -Werror -Wextra main.c libftprintf.a
https://www.cprogramming.com/tutorial/printf-format-strings.html https://www.geeksforgeeks.org/enumeration-enum-c/ https://www.tutorialspoint.com/cprogramming/c_bitwise_operators.htm https://stackoverflow.com/questions/14295469/what-does-mean-pipe-equal-operator https://www.programiz.com/c-programming/c-preprocessor-macros