-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf.h
39 lines (34 loc) · 1.63 KB
/
ft_printf.h
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: szerisen <szerisen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/04 20:24:59 by szerisen #+# #+# */
/* Updated: 2023/01/08 20:24:59 by szerisen ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <unistd.h>
# include <stdlib.h>
# include <stdarg.h>
typedef struct s_list
{
va_list ap;
size_t i;
size_t ret;
} t_list;
int ft_printf(const char *input, ...);
size_t ft_strlen(const char *str);
char *ft_strchr(const char *str, int c);
void ft_putunbr_fd(unsigned int n, int fd, size_t *ret, size_t *i);
void ft_putnbr_fd(int n, int fd, size_t *ret, size_t *i);
void ft_putstr_fd(char *s, int fd, size_t *ret, size_t *i);
void ft_putchar_fd(char c, int fd, size_t *ret);
void ft_putchar(char c, int fd, size_t *ret, size_t *i);
void ft_puthex(unsigned int n, char c, size_t *ret, size_t *i);
void ft_putptr(long long unsigned n, size_t *ret, int check, size_t *i);
void ft_format(t_list *s, const char *ip);
#endif