Following command are in terminal. (
$
)
First, clone repository with your the way you prefer
gh repo clone vinicius-f-pereira/ft_printf
or
git clone git@github.com:vinicius-f-pereira/ft_printf.git
or
git clone https://github.com/vinicius-f-pereira/ft_printf.git
cd ft_printf
make
or
make bonus
The recipe to compile executable
cc main.c libftprintf.a -Iincludes -o ft_printf
./ft_printf
Here's a boilerplate of a
main.c
#include "ft_printf.h"
/* #include "ft_printf_bonus.h" */
/**
* This header is to use if you compile bonus (make bonus)
* After do this project I let mandatory and bonus part handling specifiers and flags
* so you'll not 'see' difference between both.
* But, mandatory handle only specifiers below, and bonus handle some flags too.
* to know more about specifiers, RTFM!!!
*/
int main(void)
{
ft_printf("You can use it with following flags:\
\n%c: print character \
\n%s: print string \
\n%d: print signed numbers \
\n%i: print signed numbers \
\n%u: print unsigned numbers\
\n%x: print hexadecimal lower case \
\n%X: print hexadecimal upper case \
\n%p: print pointer address\n", 'a', "string", -1, 0, 1, 1020, 2030, "address");
return (0);
}