-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf.h
40 lines (34 loc) · 1.46 KB
/
ft_printf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jkoupy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/20 09:52:20 by jkoupy #+# #+# */
/* Updated: 2023/09/24 18:55:59 by jkoupy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
//size_t
# include <stddef.h>
//malloc, free
# include <stdlib.h>
//write
# include <unistd.h>
//variadic funcs
# include <stdarg.h>
# include "libft/libft.h"
//ft_is.c
int isspec(char c);
int isflag(char c);
int is_correct_flag(const char *format, int *i);
int is_skip_flag(const char *format, int *i);
//other.c
int print_flag_va(const char *format, int *i, va_list args);
int ft_printf(const char *format, ...);
int ft_puthexa(int nbr, char spec);
int ft_putnbr_base(unsigned int nbr, char *base);
int ft_putptr_fd(unsigned long int ptr, int fd);
#endif