Coder Social home page Coder Social logo

julienhouyet / 42-ft_printf Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 175 KB

๐Ÿ–จ๏ธ ft_printf was one of the first projects to be carried out at 42. The aim is to re-code the printf function in order to understand how it works. In future projects, the use of printf is forbidden, but we can use our own ft_printf function.

Makefile 14.49% C 85.51%
42 42born2code 42cursus 42projects 42school printf printf-42 printf-functions printf42

42-ft_printf's Introduction

42-ft_printf

42-ft_printf

Introduction

ft_printf was one of the first projects to be carried out at 42. The aim is to re-code the printf function in order to understand how it works. In future projects, the use of printf is forbidden, but we can use our own ft_printf function.

At 42 School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.

โšก Usage

To use this library, import the "include/ft_printf.h" header into your files after compiling the library.

#include "include/ft_printf.h"

๐Ÿ”Œ Installation

To install the project, clone this repository :

$ [email protected]:julienhouyet/42-ft_printf.git

๐Ÿ“ฆ Commands

To compile the library, run :

$ make

To re-compile the library :

$ make re

To wipes all object files :

$ make clean

To delete the library and all object files

$ make fclean

๐Ÿ“„ Function in the library

โœ… ft_printf

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

This ft_printf function supports several format specifiers, described below:

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

42-ft_printf's People

Contributors

julienhouyet avatar

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.