Skip to content

jhonaRiver/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation


printf Project

November / 2021


-This printf project was to make a coding function called "_printf()" that is similar to printf() in what it supposed to do. Here's a link if you would like to read about formating and functions on printf: (https://man7.org/linux/man-pages/man3/printf.3.html)

-A printf functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the standard output stream; fprintf() and vfprintf() write output to the given output stream; sprintf(), snprintf(), vsprintf() and vsnprintf() write to the character string str. Heres the link if you would like to know more: (https://linux.die.net/man/3/printf)

The prototype used is the following:

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

-The table set below are a number of specifiers that the original printf can use. Ours can only use at the moment d, i, s, c and %. Image can be found here: (https://www.cplusplus.com/reference/cstdio/printf/)

image

EXAMPLES

  1. Use: _printf("%d", 8);
  • Output: 8
  1. Use: _printf("%c", h)
  • Output: h

FILE FUNCTIONS

_printf.c

Our printf function is stored here. This performs just as the original that prints any data given to it.

main.h

This a header file. It includes all prototypes functions used.

Return values

On succes should give the correct integer.

Return (0);

AUTHORS

Sebastian Santiago - 3615@holbertonschool.com

Jhonatan Rivera - 3643@holbertonschool.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages