Giter Club home page Giter Club logo

ft_printf's Introduction

FT_PRINTF

Implementation of the famous printf function using VAR_ARGS with most of its flags.

Prototype

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

Flags

Any of these specifiers following a percent will be interpreted.
Also between the percent and specifiers many flags can be set to modify the length | precision | prefix | padding ...
%[-+ #0][\d\*][hh|h|ll|l|j|z][%sSdDioOuUxXcCbBfF]

  1. % print the character '%'.
  2. s print the string at the address given.
  3. S print the string with unicode at the address given
  4. p print the address in hexadecimal.
  5. d print the integer in base 10
  6. D same as d.
  7. i same as d.
  8. o print the integer in base 8
  9. O same as o.
  10. u print the unsigned integer in base 10.
  11. U same as u.
  12. x print the integer in base 16.
  13. X same as x but capitalize the letters.
  14. c print the character.
  15. C print the unicode character.
  16. b print the integer in base 2.
  17. B same as b
  18. f print the float number.
  19. F same as f.

ft_printf's People

Watchers

James Cloos avatar cedric avatar  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.