Skip to content
chrisdelmoroPublic

About

42's ft_printf project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

A printf re-implementation.

Table of Contents
  1. About The Project
  2. Usage
  3. License
  4. Contact

About The Project

In this project, we needed to implement a simple version of the libc function printf. To be more precise, this implementation recreate the following:

Convertion Usage
%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.

(back to top)

Usage

To use this function download the repo and compile it with the make command.

  1. Include the function header in your project like so:
#include "ft_printf.h"
  1. Compile your program including the libftprintf.a file as such:
gcc <your_program.c> libftprintf.a -I <path/to/your/headers>

(back to top)

License

Distributed under the GNU General Public License version 3 (GPLv3).

(back to top)

Contact

Christian C. Del Moro - christian.delmor@gmail.com

Project Link: https://github.com/chrisdelmoro/ft_printf

(back to top)

About

42's ft_printf project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages