We had to create a printf with all of its characteristics, such as the type of format, length modifiers, and so on.
printf in c programming leanguage, printf() function is used to print ("character,string,float,integer,octal,and hexadecimal values") onto the output screen. more info
int _printf(const char *format, ...);
String:
-
input :
_printf("%s", this is a string);
-
output :
this is a string
Character :
-
input :
_printf("%s", this is a string);
-
output :
this is a string
Integer :
-
input :
_printf("%i",20);
-
output :
20
Decimal :
-
input :
_printf("%d",1000);
-
output :
1000
- Linux
- git
- gcc 4.8.4
- How to work in team
- How to apply the vardic function
- How printf works
- how to use git in team setting
File | Description |
---|---|
_putchar.c | a file that contain putchar config |
_holberton.h | contain all prototypes |
get-function.c | a file contain printf functions |
print_number.c | a file that contain integer and decimal numbers |
print_string.c | a file that contain string/number/percent functions |
printf.c | a file that contain printf format |
sudo apt-get install git
cd /"your folder name"/
git clone https://github.com/mahdixabid/printf
✦RIM JOUDI @rimjoudi
✦MARWA ALAYA @maroua199525
✦OMAR YAHIA @omaryahia4
✦MAHDI ABID @mahdixabid