This is a recreation of a popular C language function that can do formatted printing to standard output. Tasked to us by Holberton School, this emulation of the already popular function will provide us with a better understanding of the inner workings of the printf function.
- Our code will be compiled this way:
$ gcc -Wall -Werror -Wextra -pedantic *.c
- write (man 2 write)
- malloc (man 3 malloc)
- free (man 3 free)
- va_start (man 3 va_start)
- va_end (man 3 va_end)
- va_copy (man 3 va_copy)
- va_arg (man 3 va_arg)
Conversion | Specifiers | |
---|---|---|
%c | prints a character | |
%s | prints a string | |
%% | prints a percent | |
%d | prints a decimal integer | assumes base 10 |
%i | prints a decimal integer | detects base automatically |
Bree is known for her creativity, organization, and self awareness. Advances in technology have played an integral part in her life. As an empathy-driven problem solver, Bree wants to be at the forefront of design for products, and to continuously design with others in mind, especially those who tend to be marginalized or forgotten.
- ✍️ Medium
- 🖥️ Portfolio Website