GithubHelp home page GithubHelp logo

p-claus / ft_printf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.97 MB

The code for my own printf function in the ft_printf project at Campus 19.

C 90.11% Makefile 9.89%
42 42projects printf printf-42 campus42

ft_printf's Introduction

ft_printf

ft_printf header

Campus 19 Profile status GitHub code size in bytes Code language count GitHub top language GitHub last commit

Overview

As my second project in the Campus 19 common core, I chose to do ft_printf. In this project, I have to write a function that works in the same way as the standard printf function. The goal of this project is to work with variadic arguments and learn how they work.

I didn't make the bonus and I know the code could be more efficient, but it was only my second project at Campus 19 and I passed.

Mandatory

The function needs to work with the following format specifiers

  • %c - prints a character
  • %s - prints a string
  • %d - prints a decimal (base 10) number
  • %i - prints an integer in base 10
  • %u - prints an unsigned decimal (base 10) number
  • %x - prints a lowercase hexadecimal number (base 16)
  • %X - prints an uppercase hexadecimal number (base 16)
  • %p - prints a void pointer in hexadecimal format
  • %% - prints a % sign

Result

ft_printf header

ft_printf's People

Contributors

p-claus 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.