-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
39 lines (35 loc) · 1.58 KB
/
ft_printf.h
File metadata and controls
39 lines (35 loc) · 1.58 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mrichard <mrichard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/04 22:06:25 by mrichard #+# #+# */
/* Updated: 2022/11/18 16:19:55 by mrichard ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include "libft/libft.h"
# include <stdlib.h>
# include <unistd.h>
# include <stdarg.h>
# include <stdio.h>
# include <stdint.h>
# include <limits.h>
int ft_format(va_list args, const char format);
int ft_print_ptr(unsigned long long ptr);
int ft_len_ptr(uintptr_t num);
int ft_print_hex(unsigned int num, const char format);
void ft_put_hex(unsigned int num, const char format);
int ft_hex_len(unsigned int num);
void ft_put_ptr(uintptr_t ptr);
int ft_print_str(char *str);
int ft_print_chr(int c);
void ft_putstr(char *str);
int ft_print_num(int n);
char *ft_uitoa(unsigned int n);
int ft_print_unsigned(unsigned int n);
int ft_printf(const char *str, ...);
#endif