-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
34 lines (28 loc) · 1.35 KB
/
Copy pathft_printf.h
File metadata and controls
34 lines (28 loc) · 1.35 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tbui-quo <tbui-quo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/23 13:43:08 by tbui-quo #+# #+# */
/* Updated: 2023/01/30 14:14:51 by tbui-quo ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include "libft/libft.h"
# include <stdarg.h>
# include <unistd.h>
# include <stdio.h>
# include <string.h>
# include <limits.h>
// main function
int ft_printf(const char *s, ...);
// helper function
int ft_putchar(char c);
int ft_putstr(char *s);
int ft_putnbr_base(long int n, const char *base, int nbr_base, int len);
int ft_putnbr_uns(long unsigned int n, const char *base, int nbr_base, int len);
int ft_print_pointer(void *ptr);
#endif