-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf.h
35 lines (30 loc) · 1.5 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mokhan <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/05 20:29:17 by mokhan #+# #+# */
/* Updated: 2023/10/06 13:39:51 by mokhan ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include <stdio.h>
# include <limits.h>
# include <stdbool.h>
# include "libft/libft.h"
# define HEXBASE "0123456789abcdef"
int ft_printf(const char *param, ...);
int print_chr(char c, int *flags);
int print_str(char *s, int *flags);
int print_nbr(int n, int *flags);
int print_hex(unsigned int nbr, int *flags, const char c);
int print_unsigned(unsigned int n, int *flags);
int print_pointer(unsigned long long addr, int *flags);
int ft_numlen(long long n, int base);
void ft_puthex_fd(unsigned int num, const char c, int fd);
char *ft_itoap(long long n);
#endif