This is an exploration of the complexities of the printf function and a simple recreation of that function. (Completed by Zee Adams & Gloria Bwandungi.)
Filename | Description |
---|---|
0-print_number.c |
The function print_number takes an integer and prints a string. |
1-print_string.c |
The function print_string uses print_char to output a string. |
2-str_len.c |
The function str_len returns the length of a string. |
count_digits.c |
The function count_digits returns the number of digits in an integer. |
holberton.h |
This library file contains all the protoypes of the functions used. |
print_char.c |
The function print_char returns a single character. |
printf.c |
The function _printf is the clone of c's printf function and returns the length of the string. |
replace.c |
The function replace will detect the directive and replace it with the appropriate variable. |
c_dir.c |
The function c_dir prints one character and returns the length |
s_dir.c |
The function s_dir prints a string and returns the length |
i_dir.c |
The function id_dir prints a number and returns the length |
man_3_printf |
The man page documentation for the printf clone. |