-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printf.h
33 lines (29 loc) · 1.42 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qduong <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/23 16:58:38 by qduong #+# #+# */
/* Updated: 2021/11/23 17:05:01 by qduong ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <unistd.h>
# include <stdarg.h>
# include "./libft/libft.h"
int ft_printf(const char *format, ...);
int convert_deca(unsigned long n);
int write_unsigned_dec(unsigned int u);
int convert_hexa_lowercase(unsigned long n);
int convert_hexa_uppercase(unsigned long n);
int write_lower_hexa(unsigned int x);
int write_upper_hexa(unsigned int y);
int conversion(va_list args, char format);
int write_character(char c);
int write_string(char *str);
int write_pointer(unsigned long ptr);
int write_double(int d);
#endif