-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprintf.h
More file actions
65 lines (54 loc) · 2.2 KB
/
printf.h
File metadata and controls
65 lines (54 loc) · 2.2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* ************************************************************************** */
/* */
/* :::::::: */
/* printf.h :+: :+: */
/* +:+ */
/* By: oswin <oswin@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2021/02/09 11:56:50 by oswin #+# #+# */
/* Updated: 2021/02/12 16:23:27 by oswin ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef PRINTF_H
# define PRINTF_H
# include <unistd.h>
# include <stdarg.h>
# include <stddef.h>
typedef struct s_prep
{
int width;
int right;
int precision;
int len;
int superiorlen;
int zero;
int min;
int nbr;
unsigned int usi;
} t_prep;
int ft_printf(const char *format, ...);
int rnw(const char **format, int *pcount);
int bspecial(char **format, va_list *ap);
int wwcd(char **format, va_list *ap, char c);
int ft_included(char to_check, char *str);
int ft_writelen_b(size_t nbr, int blen);
int ft_strlen(char *s);
void ft_putstring(char *s);
void ft_putchar(int c);
int ft_atoi(char *nbr);
int ft_width(char *format, va_list *ap, int *right);
int ft_precision(char *format, va_list *ap);
void ft_putwidth(int width, int c);
int ft_putc(va_list *ap, char **format, int mod);
int ft_puts(va_list *ap, char **format, char *null);
int ft_prep_ptr(va_list *ap, char **format);
int ft_pointer(t_prep info, void *ptr);
int ft_retour(int a, int b);
void ft_putnbr_b(size_t input, char *base, int blen);
int ft_putpositive(t_prep info, char *base);
int ft_uprep(va_list *ap, char **format, char *base);
int ft_putdi(t_prep info);
int ft_prepdi(va_list *ap, char **format);
void ft_prepdi_helper(t_prep *p);
int ft_putnegative(t_prep info);
#endif