Giter Club home page Giter Club logo

holbertonschool-printf's Introduction

"_PRINTF" PROJECT

-This printf project was made 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 produces an 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/)

EXAMPLE

    int main()

    {

    _printf(“%d”, 8008135);

    }

Output:

    8008135

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);

FLOWCHART:

The next flowchart is the one for the function called in the _printf main function.

holbertonschool-printf's People

Contributors

chrs-creyk avatar yeoscrn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.