Skip to content

Matesant/Printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printf

Imagem 1 Imagem 2

School 42 printf()

This repository contains the third project of 42 curriculum, the Printf function. This projects make we replicate the original printf() function part of <stdio.h> library

About

Our printf function does not need to manage a buffer but should return an integer representing the size of the printed output. It needs to support the following types of variables:

char type variables: %c string type variables: %s int type variables: %d unsigned int type variables: %u hexadecimal int type variables (both uppercase and lowercase): %x and %X pointer type variables: %p

Structure

The biggest challenge in this project is handling multiple arguments and returning a integer that is correct.

Requirements

The functions are written in C language and need the gcc compiler, with <stdlib.h>, <stdarg.h> and <unistd.h> standard libraries to run.

Instructions

1. Compiling the archives

To compile the project, go to its path and run:

For mandatory functions:

$ make

2. Cleaning all binary (.o) and executable files (.a)

To delete all files generated with make, go to the path and run:

$ make fclean

3. Using it in your code

To use this project in your code, simply include this header:

#include "ft_printf.h"

Testing

This function have been tested with Francinette.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published