Code Monkey home page Code Monkey logo

printf's Introduction

Our Printf

Medellin 2019

Tomas Mejia

Jonatan Mazo

What is PRINTF?

*our version of PRINTF using in C programming languages, for build a sketch about of LINUX printf.

###_printf() #include <stdlib.h> #include <stdarg.h> #include "holberton.h"

/** *_printf - our version of printf library function *@format: lengt *Return: contador * */

int _printf(const char *format, ...) { int ctdr1 = 0; va_list list;

va_start(list, format);

if (format == NULL) { return (-1); } ctdr1 = _switches(format, list); va_end(list);

return (ctdr1); }

Description

This Repo has the code for our function called _printf(). It is a test version of C Language function printf() from stdio.h librarie, and our function _printf() replicate the exact same process of some of the cases as the C function printf(). This project was completed as a part of the curriculum for Holberton School.

Usage

The directory contents should be compiled with the following command:

$ gcc -Wall -Werror -Wextra -pedantic -Wno-format *.c | _printf() function may be used, in any C language program. This is the prototype:

_printf(const char *[FORMAT], ...);

Speacial Characaters

  • %c: print a singlecharacter
  • %d: print adecimal (base 10) number
  • %i: print aninteger in base 10
  • %s: print astring of characters
  • %%: print a percent sign (%also works)

C language standard functions used

  • write.
  • switch.
  • va_start.
  • Va_end.
  • va_arg.

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.