This repository was archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printf.h
56 lines (48 loc) · 1.65 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
50
51
52
53
54
55
56
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ctherin <ctherin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/20 16:31:20 by ctherin #+# #+# */
/* Updated: 2022/06/22 18:08:27 by ctherin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include <stdlib.h>
# include <unistd.h>
# include <stddef.h>
# include <limits.h>
/*
ft_printf.c
*/
int ft_printf(const char *s, ...);
/*
ft_printf_utils.c
*/
int ft_print_percent(void);
int ft_print_d_i(int n);
int ft_print_str(char *s);
int ft_print_char(char c);
int ft_print_ptr(void *ptr);
/*
ft_printf_utils2.c
*/
int ft_print_u(unsigned int n);
int ft_print_lowercase_hex(unsigned int n);
int ft_print_uppercase_hex(unsigned int n);
/*
ft_itoa_base.c
*/
char *ft_itoa_base(long long int n, char *base);
char *ft_unsigned_itoa_base(unsigned long long int n, char *base);
/*
ft_mem_utils.c
*/
void *ft_calloc(size_t nmemb, size_t size);
size_t ft_strlen(const char *s);
char *ft_strdup(const char *s);
#endif