Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.49 KB

File metadata and controls

42 lines (34 loc) · 1.49 KB

PRINTF PROJECT IMPLEMENTATION IN C LANGUAGE


This project is about recreating our printf function, which belongs to a standard C language library. Its main function is to send a standard output according to the format, fomatting the past arguments and turning them into the arguments os a charracter string. For this project, the main function will be used as _printf to diffrentiate it from the original printf. printf

How to use it 🔧

Firts you have to add the holberton library. "holberton.h"

This library contains all the prototypes functions that you will need to execute the _printf function

Prototype: int _printf(const char *format, ...);

Then compile just like that:
gcc -Wall Wextra -Werror -pedantic -Wno-format *.c holberton.h -o namefileExecutable

./"namefileExecutable"

Test⚙️

Some examples of how to call the function _printf To print a nomal string:

_printf("hello, world");

To print a nomal variable type char use %c:

_printf("I am a char:%c" variable);

To print a normal string whit a pointer to char use %s:

_printf("My name is:%s" pointer_to_char);

Development environment 🛠️

This project has been tested on Ubuntu 14.06.6 LTS

Authors✒️

  • Javier Charria - student at Holberton School
  • Oscar Info - student at Holberton School