Skip to content

This project covers the development of creating the printf function of the programming language c, intending to put into practice the knowledge recently acquired.

Notifications You must be signed in to change notification settings

untalinfo/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This project covers the development of creating the printf function of the programming language c, intending to put into practice the knowledge recently acquired.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages