This repository contains a version of printf in c language, which maintains the main functions of this basic function. This project is a project requested by Holberton School
you must have the gcc compiler and a 64-bit system installed for greater reliability:
$ sudo apt install gcc
$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The following conversion operators are available:
-
s = strings
-
c = characters
-
i = integers
-
d = decimals
-
% = percentage signs
-
b = binary
When you have already cloned the repository, create this main.c:
And run this command:
$ gcc -Wall -Wextra -Werror -pedantic -Wno-format *.c
and you will see all the possibilities you can do with _printf.
_printf("%s %s %s\\n", "hey", "i", "work!");
Output : "hey i work!"