-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf.h
49 lines (41 loc) · 1.53 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
41
42
43
44
45
46
47
48
49
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vsoares- <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/23 15:22:53 by vsoares- #+# #+# */
/* Updated: 2024/11/23 22:10:16 by vsoares- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include <stdio.h>
# include <stdlib.h>
# include <unistd.h>
# include <limits.h>
# ifndef DECIMAL
# define DECIMAL "0123456789"
# endif
# ifndef HEXA_UP
# define HEXA_UP "0123456789ABCDEF"
# endif
# ifndef HEXA_LOW
# define HEXA_LOW "0123456789abcdef"
# endif
# ifndef NEGATIVE_HEX
# define NEGATIVE_HEX 0
# endif
# ifndef DIG_OVERFLOW
# define DIG_OVERFLOW 1
# endif
int ft_strlen(char *str);
int lprint_chr(int c);
int lprint_str(char *str);
int lprint_ptr(void *ptr);
int lprint_dig(long n, char *base);
int lprint_hex(unsigned long n, char *base);
int ft_printf(const char *str, ...);
#endif