Skip to content

Archer-01/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

A simple recode of libc's printf

Description

  • ft_printf does not use buffer management like the real printf function
  • It manages the following conversions: %c, %s, %p, %d, %i, %u, %x, %X and %%
  • Like the real printf function, ft_printf returns the number of characters it printed

Prototype

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

Usage

git clone https://github.com/Archer-01/ft_printf.git
cd ft_printf
touch main.c
#include "ft_printf.h"

int	main(void)
{
	ft_printf("%s is cool! %d/100\n", "ft_printf", 100);
	return (0);
}
make
gcc main.c -L. -lftprintf
./a.out

forthebadge

About

Recoding libc's printf

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published