hde-oliv / ft_printf

My reimplementation of the libc printf function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft_printf

What is it?

A simple reimplementation of C function printf.

Succeeded with 100%

Skills

  • Algorithms & AI
  • Rigor
  • Unix logic

Features

It only handles the following format tags: c, s, p, d, i, u, x, X and %.
Any other tag will be outputted as is (including flags).

Examples:

ft_printf("%c", 'a');       --> 'a'
ft_printf("%p", -1);        --> '0xffffffff'
ft_printf("%-10s", "Hello") --> '%-10s'
ft_printf("%f");            --> '%f'

How to use it

Requirements:

sudo apt install clang

Clone the repository and run:

make

The library is generated on the file libftprintf.a.

Recommended suite of tests

Found any bugs?

Feel free to contact me or create an issue!

License

This project is licensed under the GNU General Public License v3.0 - see the COPYING file for details.

About

My reimplementation of the libc printf function.

License:GNU General Public License v3.0


Languages

Language:C 97.3%Language:Makefile 2.7%