-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
46 lines (33 loc) · 1.45 KB
/
ft_printf.h
File metadata and controls
46 lines (33 loc) · 1.45 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: rcappend <rcappend@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2020/12/01 12:22:22 by rcappend #+# #+# */
/* Updated: 2021/10/15 11:02:35 by rcappend ######## odam.nl */
/* */
/* ************************************************************************** */
# ifndef FT_PRINTF_H
# define FT_PRINTF_H
#include <stdarg.h>
#include "libft/libft.h"
typedef struct s_track
{
char *value;
char type;
t_bool lalign;
char space;
int width;
int prec;
} t_track;
int ft_printf(const char *, ...);
int flaghandler(t_track *c, const char *str, va_list args);
void t_track_init(t_track *c);
int value_converter(va_list args, t_track *c);
char *ft_itoa_ptr(unsigned long long n);
int value_formatter(t_track *c);
int value_output_combiner(char **output, t_track *c, size_t *len);
void print_string(char *output, size_t len);
# endif