GithubHelp home page GithubHelp logo

printf's Introduction

PRINTF

Printf takes a string and prints it.

DESCRIPTION

Format specification are allow in the following cases (c, s, d, i).

c - chararacter to be printed until its last one.Does not print null.

s - string to be printed until the last one which is not null. receives an %s and a variable that holds the value of s, so it can be converted to what the variable holds.

% - To print a porcentage

d - decimal. refer to a number and use it to print it as a decimal number of base 10.

i - refers to a number

NOTE: this is a version belonging to a personalized printf which does not contains the flag characters, precision, field widht and lenght modifiers.

EXAMPLES

#include "holberton.h" 
printf("I love pointer");
Output ---> I love pointer
Return: 14

#include "holberton.h"
_printf("%k%");
Output ---> %k%
Return: 3

#include "holberton.h"
 _printf("El precio es: %d", 750.00);
Output ---> El precio es 750.000
Return: 20
Task Description
0 Produces output according to a format.
1 Handle conversion specifiers.
2 Man page for printf.

AUTHORS

  • Barbara Calle
  • Yennifer Tobon

printf's People

Contributors

dr4g0nb avatar yennifertobon 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.