printf is a function that sends a formatted string to standard output where it displays on the console. This project is apart of Holbeton Tulsa first trimester curriculum. We recreated the standard library printf() function using _printf.
int _printf(const char *format, ...);
Type | Output |
---|---|
d, i | signed decimal integer |
s | string of characters |
c | single character |
* Prints, converts and formats arguments on std output,
under the control of the format
* Returns number of characters in output string when successful,
otherwise -1 for failure.
* All files created and compiled on Ubuntu 20.04 LTS
& using gcc Wall -Werror -Wextra -pedantic -std=gnu89
_printf("Hello, Tulsa\n")
* Aboves output = "Hello, Tulsa" the (\n) = new line
_printf("%s", "Hello")
* Aboves output = "Hello"
_printf(It is the year %d", 2022)
* Aboves output = "It is the year 2022"