/ft_printf

An implementation of function printf.

Primary LanguageCGNU General Public License v3.0GPL-3.0

ft_printf

TOC

What is it about?

The goal of this project is to mimic the printf function (included in <stdio.h>). Other information about the project:

  • there is no required buffer, as is present in the system printf
  • the following conversions are supported: sSpdDioOuUxXcC
  • the %% is supported
  • the following flags are supported: #0-+[SPACE]
  • the following lengths flags are supported: hh, h, l, ll, j, z
  • precision is supported
  • basic functionality for * is supported
Creator: Pedago Team. Task description

Usage

Download and compile repo:

    git clone https://github.com/IvanKozlov95/ft_printf
    cd ft_printf
    make

Not libftprintf.a library is created.

Examples

There is a main file created for tests. Run command make test inside repo folder.

    make test
    ./a.out
    > Hello world!

Fell free to edit main function in test/main.c to add more.

Authors

This project was developed by Ivan Kozlov @ivankozlov95

License

This project is licensed under the GNU General Public License 3.