-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
48 lines (42 loc) · 1.62 KB
/
ft_printf.h
File metadata and controls
48 lines (42 loc) · 1.62 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: chaydont <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/29 14:13:50 by chaydont #+# #+# */
/* Updated: 2017/12/13 14:51:10 by chaydont ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdio.h>
# include <stdarg.h>
# include <unistd.h>
# include <stdlib.h>
typedef struct s_param
{
int sharp;
int plus;
int minus;
int zero;
int space;
int length;
int precision;
char flag;
char type;
} t_param;
int ft_printf(const char *str, ...);
int parsing(char *str, t_param *flags);
int ft_printu(va_list ap, t_param flags);
int ft_printi(va_list ap, t_param flags);
int ft_prints(va_list ap, t_param flags);
int ft_printc(va_list ap, t_param flags);
int ft_atoi(const char *str);
size_t ft_strlen(const char *str);
char *ft_strchr(const char *s, int c);
void ft_putchar(char c);
int ft_nb_digit_base(int n, int base);
int ft_isdigit(int c);
#endif