An open API service indexing awesome lists of open source software.

https://github.com/zainabdnaya/ft_printf


https://github.com/zainabdnaya/ft_printf

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# ft_printf

This project is pretty straight forward. You will recode printf. Hopefully you will be able to reuse it in future project without the fear of being flagged as a cheater. You will mainly learn how to use variadic arguments.

The versatility of the printf function in C represents a great exercise in programming for us. This project is of moderate difficulty. It will enable you to discover variadic functions in C.
The key to a successful ft_printf is a well-structured and good extensible code

## Features

Supports all these converters, flags and modifiers:

Type | Name
------------ | -------------------------------------------------------------------------------
Converters | %d / %s / %p / %i / %u / %x / %X / %c/ %%
Flags | * / 0 / - / .

## Compilation

Run `make` command to compile the libftprintf library.

## Usage

Compile your project with libftprintf.a.
Don't forget to include "ft_printf.h"

To compile with the repository main:
```
gcc -Wall -Werror -Wextra main.c libftprintf.a
```

moulinette