GithubHelp home page GithubHelp logo

42-ft_printf's Introduction

Rigor Algorithms&AI

ft_printf ๐Ÿ’ป

The versatility of the printf function in C represents a great exercise in programming. This project is of moderate difficulty.

Evaluation

Eval Badge

Mandatory part

Function Description Library External functions
ft_printf Produces output to stdout, the standard output stream, according to a format as described below. stdio.h malloc, free, write, va_start, va_arg, va_copy, va_end

The format string is composed of zero or more directives: ordinary characters (not %), which are copied unchanged to the output stream; and conversion specifications, each of which results in fetching zero or more subsequent arguments. โ€” PRINTF(3)

Format Description
%c Print a single character.
%s Print a string of characters.
%p The void * pointer argument is printed in hexadecimal.
%d Print a decimal (base 10) number.
%i Print an integer in base 10.
%x Print a number in hexadecimal (base 16) - lowercase.
%X Print a number in hexadecimal (base 16) - uppercase.
%% Print a percent sign.

Bonus part

Managed the following flags:

Flag Description
# For x conversions, a nonzero result has the string "0x" (or "0X" for X conversions) prepended to it.
space A blank should be left before a positive number produced by a signed conversion (d or i).
+ A sign (+ or -) should always be placed before a number produced by a signed conversion.

42-ft_printf's People

Stargazers

 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.