Our _printf function has as prototype :
int _printf(const char *format, ...);
printf in c programming language, printf() function is used to print ("character,string,float,integer,octal,and hexadecimal values") onto the output screen.
- write (man 2 write)
- va_start (man 3 va_start)
- va_end (man 3 va_end)
- va_arg (man 3 va_arg)
Our code is compiled this way:
$ gcc -Wall -Werror -Wextra -pedantic *.c
All our files are tested on Ubuntu 14.04 LTS in a VirtualBox on it via Vagrant(2.2.14) using the Betty style.
C language standard functions allowed:
- WRITE (MAN 2 WRITE)
- va_start (man 3 va_start)
- va_end (man 3 va_end)
- va_arg (man 3 va_arg)
Format tags used in _printf :
Specifiers | Printed As |
---|---|
c | characters |
s | string of characters |
d or i | int to signed decimal |
R | string to rot 13 |
r | reversed string |
b | int to binary |
% | no conversion, writes '%' |
- 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 |
main.h | contain all prototypes |
_printf.c | a file contain printf functions |
print_func.c | a file that contain integer and decimal numbers |
print_string.c | a file that contain string/number/percent functions |
function.c | a file that contain printf format |
✦Eya zidi @EyaZidi19
✦Fedy chihaoui @Fedy69