-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
46 lines (30 loc) · 1.75 KB
/
Copy pathft_printf.h
File metadata and controls
46 lines (30 loc) · 1.75 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
39
40
41
42
43
44
45
46
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pgomez-a <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/11 08:44:09 by pgomez-a #+# #+# */
/* Updated: 2021/03/12 09:34:25 by pgomez-a ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include "./libft/libft.h"
# include <stdarg.h>
# include <stdio.h>
int ft_printf(const char *format, ...);
int pf_man_fmt(va_list *ap, int ct, const char *format, char **width);
int pf_man_pre(va_list *ap, int ct, const char *format, char **width);
void pf_find_char(va_list *ap, char **width, int **result);
void pf_find_pct(char **width, int **result);
void pf_find_str(va_list *ap, char **width, int **result);
void pf_find_int(va_list *ap, char **width, int **result);
void pf_find_uns(va_list *ap, char **width, int **result);
void pf_find_hex(va_list *ap, char c, char **width, int **result);
void find_ptr(va_list *ap, char **width, int **result);
int ptr_man_pre(char **number, char **pre);
void man_pos_width(int verif, char **number, char **width, int **result);
void man_neg_width(char **number, char **width, int **result);
#endif