-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibftprintf.h
More file actions
66 lines (62 loc) · 2.74 KB
/
libftprintf.h
File metadata and controls
66 lines (62 loc) · 2.74 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
66
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libftprintf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mifernan <mifernan@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/08 17:38:05 by mifernan #+# #+# */
/* Updated: 2019/11/29 10:22:39 by mifernan ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBFTPRINTF_H
# define LIBFTPRINTF_H
# include <unistd.h>
# include <stdlib.h>
# include <ctype.h>
# include <string.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <stdarg.h>
# include "libft/libft.h"
# include <stdio.h>
int ft_numlen(long int nb, int base);
long int ft_convert_ld(long int nb);
char *ft_convert_d(long int nb);
char *ft_convert_xmin(long int nb);
char *ft_convert_ptr(long int nb);
char *ft_convert_xmaj(long int nb);
char *ft_convert_u(long int nb);
int ft_flags_valid(char *flags);
int ft_is_conv(char c);
void ft_free_tab(char **tab);
char *ft_find_flags(const char *str);
char **ft_split_flags(const char *str);
int ft_putconv(char *flags, va_list *args);
int ft_printf(const char *src, ...);
char ft_find_flag(char *str);
int ft_find_pos_prec(char *str);
int ft_find_width(char *str, va_list *args);
int ft_find_width_prec(char *str, va_list *args, int i);
int ft_find_precision(char *str, va_list *args);
char *ft_init_strwidth(int width, char *cpy, char *flag);
char *ft_init_pustr(char *cpy, int prec);
int ft_put_printf(const char *src, int *i);
int ft_while_printf(const char *src, char **flags, va_list *args);
int ft_isneg(char *cpy);
char *ft_find_pos_neg(char *cpy);
char *ft_init_dprec(int prec, char *cpy, char *flag);
char *ft_init_dwidth(int width, char *cpy, char *flag, int prec);
int ft_putd_c(char *flags, va_list *args);
int ft_putu_c(char *flags, va_list *args);
int ft_putxmin_c(char *flags, va_list *args);
int ft_putxmaj_c(char *flags, va_list *args);
char *ft_init_ptrwidth(int width, char *flag, char *cpy);
int ft_putptr_c(char *flags, va_list *args);
int ft_putstr_c(char *flags, va_list *args);
char *ft_convert_char(int c);
char *ft_init_charwidth(int width, char *flag);
int ft_putchar_c(char *flags, va_list *args);
int ft_len_src(const char *src);
#endif