-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printf.h
37 lines (33 loc) · 1.56 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tpiras <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/24 11:59:20 by tpiras #+# #+# */
/* Updated: 2023/02/24 14:09:23 by tpiras ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <unistd.h>
# include <stdarg.h>
# include "libft/libft.h"
int ft_printchar(char c);
int check_formats(va_list args, const char format);
int ft_printf(const char *str, ...);
int ft_printstr(char *str);
int ft_printnbr(int n);
int ft_printperc(void);
int ft_printpoint(unsigned long long ptr);
int ft_printunbr(unsigned int n);
int unbr_len(unsigned int n);
int len_hex(unsigned int n);
int len_pointer(unsigned long long p);
int ft_printhex(unsigned int n, const char format);
void ft_putstr(char *str);
void ft_putpointer(unsigned long long p);
void ft_puthex(unsigned int nbr, const char format);
char *ft_unitoa(unsigned int n);
#endif