-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf.h
34 lines (29 loc) · 1.37 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: juhtoo-h <juhtoo-h@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/04 07:44:54 by juhtoo-h #+# #+# */
/* Updated: 2024/09/04 13:40:24 by juhtoo-h ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <unistd.h>
# include <stdlib.h>
# include <stdarg.h>
# include <stdint.h>
# define LOWER_HEX "0123456789abcdef"
# define UPPER_HEX "0123456789ABCDEF"
int ft_printf(const char *str, ...);
int ft_putchar(int c);
int ft_putstr(char *str);
int ft_printf_format(va_list vlist, char format);
int ft_putpercent(void);
int ft_putnbr(int num);
int ft_putunbr(unsigned int num);
int ft_putptr(uintptr_t ptr);
int ft_nbrtohex(unsigned int num, char format);
#endif