The goal of this project is to create a function that produces output according to a format. Inspired by printf from the C Standard Library
git clone [email protected]:anaruzz/printf.git
- The code will be compiled this way:
$ gcc -Wall -Werror -Wextra -pedantic *.c -o monty
- Include holberton.h
- Call the function _ printf passing optional arguments.
- Use format specifiers for desired output.
- The function returns -1 if an error occurs.
- _ printf("Hello, world\n") prints "Hello, world" followed by a new line
- _ printf("%d\n", 5) printf the decimal number, 5 followed by a new line
- _ printf("%c", 'a') prints the character 'a'
Ghofrane Abidi - Atef Mechken