-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
38 lines (31 loc) · 1.41 KB
/
ft_printf.h
File metadata and controls
38 lines (31 loc) · 1.41 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: macuesta <macuesta@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/15 08:18:41 by macuesta #+# #+# */
/* Updated: 2024/11/15 13:40:00 by macuesta ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include <stdio.h>
# include <limits.h>
# include "libft/libft.h"
// fr_print.c
int ft_printf(const char *fm, ...);
// handlers/
int ft_handler_c(char c);
int ft_handler_s(char *s);
int ft_handler_p(unsigned long int n);
int ft_handler_d_i(int n);
int ft_handler_u(unsigned int n);
int ft_handler_x(unsigned int n, char *base);
// utils/
int ft_dispatcher(char c, va_list *args);
int ft_print_until_format(const char *fm, int *i);
int is_a_formatter(char c);
#endif // FT_PRINTF_H