-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
36 lines (32 loc) · 1.5 KB
/
ft_printf.h
File metadata and controls
36 lines (32 loc) · 1.5 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maelgini <maelgini@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/14 12:56:50 by maelgini #+# #+# */
/* Updated: 2025/01/27 18:36:24 by maelgini ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include <unistd.h>
# include <limits.h>
# include <stdlib.h>
void ft_putchar(char c);
int ft_putnbr_hex(unsigned int n, int size, char format);
int ft_putstr_hex(void *ptr);
int ft_format(va_list args, const char format);
int ft_char(char c);
int ft_printf(const char *format, ...);
int ft_putnbr(int nb, int size);
int ft_putstr(char *str);
int ft_unsigned_putnbr(unsigned int u, int size);
int ft_putfloat(double n, int size);
int ft_putfloat_frac(double frac_part, int precision);
int get_num_size(int n);
char *ft_itoa(int n);
size_t ft_strlen(const char *s);
#endif