A version of printf
named _printf
created by Kristen Loyd and Wendy Segura.
_printf
takes a pointer to a constant character as the first parameter, and a number of subsequent parameters. The first parameter contains conversion specifiers for the subsequent arguments.
Function prints the specified arguments in a formatted style and returns the number of characters printed.
_printf("Hello %s%c", "World", '!')
- Output: prints to stdout:
Hello World!
All files are in the Betty
style. Notes on this style can be found at https://github.com/holbertonschool/Betty/wiki
All files will be compiled with the following: $ gcc -Wall -Werror -Wextra -pedantic *.c
The following conversion specifiers are handled with _printf
:
%c
: single character%s
: string of characters%d
: signed integer%i
: signed integer
Currently, _printf
cannot handle anything that needs an output of more than 1024 characters.
In the future, we will fix this issue by either a) creating a check for our buffer or b) using _putchar
to print everything to standard output and not using a buffer.
README.md
: Current file, contains information about this projectholberton.h
: Header file, contains all prototypes for funcitons used, as well as libriaries._printf.c
: Contains the code for_printf
_putchar.c
: File for function that prints a characterpf_funcs.c
: File containing the specific functions for conversion specifiersman_3_printf
: man page for our_printf
testing
: folder for test files