Add initial code

This commit is contained in:
gbaconni
2022-04-13 08:01:46 +02:00
parent 3c563477d5
commit 65a087aa34
23 changed files with 947 additions and 0 deletions

33
libftprintf/libftprintf.h Normal file
View File

@@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libftprintf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/18 15:26:06 by gbaconni #+# #+# */
/* Updated: 2022/04/12 07:10:26 by gbaconni ### lausanne.ch */
/* */
/* ************************************************************************** */
#ifndef LIBFTPRINTF_H
# define LIBFTPRINTF_H
# include "libft/libft.h"
# include <stdlib.h>
# include <stdarg.h>
# include <unistd.h>
/* Mandatory */
int ft_printf(const char *format, ...);
int ft_vprintf(char const *format, va_list ap);
int ft_vprintf_char(const char *format, va_list ap);
int ft_vprintf_string(const char *format, va_list ap);
int ft_vprintf_pointer(const char *format, va_list ap);
int ft_vprintf_decimal(const char *format, va_list ap);
int ft_vprintf_hexadecimal(const char *format, va_list ap);
int ft_vprintf_percent(const char *format, va_list ap);
int ft_vprintf_other(const char *format, va_list ap);
/* Bonus */
#endif