[go: nahoru, domu]

Skip to content

Recoding of C function printf(), developed during Common Core curriculum at 42.

License

Notifications You must be signed in to change notification settings

teresa-chow/42-ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

42 School: Rank 1

Recoding of printf: in C language, printf is used to write formatted output to the standard output stream, stdout. This project was developed during the Common Core curriculum at 42, introducing the concept of variadic functions.


Table of contents

Usage · Subject · Mandatory · Bonus · License



🧭 Usage

Setup and compilation

  1. Clone repository

    git clone git@github.com:teresa-chow/42-ft_printf.git
  2. Go inside project directory and run make

    cd ft_printf
    make
  3. To use the library in your code, #include the following header

    #include "ft_printf.h"

📖 Subject

📄 ft_printf subject EN [PDF]


Note

This codebase follows the applicable programming standard at 42, known as the Norm.

Mandatory part

Handled conversions:

Format specifier Description
%c Prints a single character.
%s Prints a string of characters.
%p Prints the void * pointer argument in hexadecimal format.
%d Prints a decimal (base 10) number.
%i Prints an integer in base 10.
%u Prints an unsigned decimal number.
%x Prints a number in hexadecimal (base 16) lowercase format.
%X Prints a number in hexadecimal uppercase format.
%% Prints a percent sign.


License

This work is published under the terms of 42 Unlicense.


⬆ back to top

About

Recoding of C function printf(), developed during Common Core curriculum at 42.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published