naviisml / ft_printf

The goal of this project is pretty straightforward. We will recode printf(). We will mainly learn about using a variable number of arguments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft_printf

The ft_printf() function formats and prints its arguments, after the first, under control of the format. The format is a character string which contains three types of objects: plain characters, which are simply copied to standard output, character escape sequences which are converted and copied to the standard output, and format specifications, each of which causes printing of the next successive argument.

The arguments after the first are treated as strings if the corresponding format is either c, b or s; otherwise it is evaluated as a C constant.

Features

  • ft_printf & ft_fprintf
  • Conversion for %u, $d %i, %c, %s, %p, %x, %X, %%
  • Conversion for -, +, 0, ., #,

Requirements

  • gcc
  • make

Installation

Step 1. Install this repository

git clone https://github.com/naviisml/ft_printf

Step 2. Compile the program

make all

Prototypes

ft_printf

int	ft_printf(const char *format, ...);

ft_fprintf

int	ft_fprintf(int fd, const char *format, ...);

Results

Score: 100/100

Date: 04-12-2021

Made with tons of ☕ and ❤️ by Navi

About

The goal of this project is pretty straightforward. We will recode printf(). We will mainly learn about using a variable number of arguments.

License:Apache License 2.0


Languages

Language:C 93.2%Language:Makefile 6.8%