The goal of this project is to create a custom printf function in C that can format and display text in the console based on a format string and an unspecified number of arguments.
int _printf(const char *format, ...);The _printf function will return the number of characters printed (excluding the null byte used to end output to strings).
- printf(“%s”, — — — — -)
- printf(“%c”, — )
- printf(“%%”)
- printf(“ String here”)
- printf(“%d or %i”)
The custom printf function will handle the following conversion specifiers:
%c: Print a single character.%s: Print a null-terminated string.%%: Print a percent symbol.
Additionally, the following conversion specifiers for integers will also be handled:
%d: Print a signed integer.%i: Print a signed integer.