Printf project

(Function _printf) A project that consist in the recreation of the printf function.

Prototype

int_printf(const char *format, ...);

Description

  • The function _printf will look for the elements according to the protoype.
  • The function _printf will return the lenght of the input or -1 if wrong input.
  • The file select_printer.c contain the structure for the format specifiers.
  • It is included the prototipe of the functions in the holberton.h file.

Format Specifiers


Files

File Description
_printf.c Prints according to an specified format
print_char.c Contains function that prints a char
print_string.c Contain function that prints string
print_int.c Contain function that prints a string
print_double.c Contain function that prints a double
print_octal.c Contain function that converts a number to octal
print_hexa.c Contain function that converts a number to hexadecimal
print_mini_hexa.c Contain function that converts a number to hexadecimal (lowcase)
print_binary.c Contain function that converts a number to binary
print_reverse.c Contain function that reverse a string
print_rot13.c Contain function that converts to rot13 (work in progress)
print_unsigned_int.c Contain function that handles unsigned int
print_special.c Contain function that handles % format
select_printer.c Contain function that contains a structure for the formats
holberton.h header file

Autors

Ricardo Gutierrez - GitHub
Kenneth Cortes - GitHub