GithubHelp home page GithubHelp logo

42_ft_printf's Introduction

42_FT_PRINTF πŸ–¨οΈ

A custom printf implementation in C.

About ✍

Ft_printf is part of 42 Common Core and aims to replicate the functionality of the standard C library function printf supporting the conversions "cspdiuxX%". The project provides a learning of new concepts that certainly will be useful for next Common Core activities. The main goal is to deepen your understanding of the inner workings of printf, enhancing your proficiency in C programming.

Prototype πŸ–₯️

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

Challenges and Learning Objectives 🧠

  • Variadic Functions: Dealing with a variable number of arguments.
  • String Parsing and Formatting: Parsing format strings and handling various specifiers.

Conversions πŸ’‘

  • %c -> Prints a single character.
  • %s -> Prints a string (as defined by the common C convention).
  • %p -> The void * pointer argument has to be printed in hexadecimal format.
  • %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 number in hexadecimal (base 16) lowercase format.
  • %X -> Prints a number in hexadecimal (base 16) uppercase format.
  • %% -> Prints a percent sign.

Grade

Norminette πŸ’‚πŸ»

At 42 School, we need to follow some strict rules when writing our code. These rules are described in the Norm and checked by the formidable norminette. Here are some of them:

- No for, do...while, switch, case, goto, ternary operators and variable-length arrays are allowed
- Each function must be maximum 25 lines
- One single variable declaration per line
- You can’t declare more than 5 variables per function
- You can't write more thane 5 functions per file
...

Click here to review the complete Norm document.

42_ft_printf's People

Contributors

marcelofassbinder 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.