Hello, welcome to our first group project, we're replicating the printf() fucntion from the C Standard Library.
Project _printf() - Produce output to stdout according to a format described below similar to the printf() function.
- Language: C
- Editor: VIM 8.1.2269
- Compiler: gcc 9.3.0
- Wall -Werror -Wextra -pedantic -std=gnu89
- Style guidelines: Betty style
- No allowed to use global variable
- No more than 5 functions per file
- All files end with a new line
| Specifier | Output |
|---|---|
c |
character |
s |
string |
d or i |
Signed integer |
% |
% |
To install execute in terminal git clone https://github.com/caseybtc96/printf
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c
-
_printf functions examples:
-
_printf("Character:[%c]\n", 'H');
- Output: char: [H]
-
_printf("String:[%s]\n", "I am a string !");
- Output: string: [I am a string !]
-
_printf("decimal: [%d]\n", 10000);
- Output: decimal: [10000]
-
_printf("Percent: [%%]\n");
- Output: Percent: [%%]
Casey Paul
Tsim Muaj Yang
