This repository contains our own version of the printf
function of the c language called "_printf " , which allows printing in the standard output, under different types of arguments or literal strings; In our files you will also find modifiers that the original function does not have.
#include "holberton.h"
/**
* main - Entry point
* Return: always (0) success
*/
int main (void)
{
_printf("Hello Holberton"); /* To print litteral string*/
_printf("%(format to print)", Variable name)
return (0);
}
- README.msc : It contains all the information about the project and all its content.
- holberton.h : It is the header file that contains our main
struct
to analyze the cases of printing variables and it also has our function prototypes - _printf.c : This file contains the structure of the
printf
function and analyzes the different cases to print variables with the%
sign. - text.c : This program has the functions for
%c
%s
cases, which print characters and strings. - numbers.c : This program has the functions for
%d
%I
cases, which print integers and unsigned integers. - binary.c : This translator prints any given number, to its value in binary.
- rot13.c : String encoder in a rot13 way, using
%R
. - reverse.c : Reverser of literal strings with the
%r
command.
You can use your own main.c
file or modify the one that is in the example above, to test the different functions. You just have to compile it like this,
$ gcc -Wall -Werror -Wextra -pedantic holberton.h *.c
-
Ubuntu 14.04 LTS
-
Functions and files will be compiled with gcc 4.8.4 with flags
-
All the files must have Betty style
- Diego Lopez : @LopezDfelo93
- Juan Carlos Hernandez : @luigi_jong
- Julio Arenas : @JulioAr73961918
- 28/10/2020
- Holberton school Colombia
- Cohort #13 BOG0920