Repository navigation
Expand file tree
/
Copy pathft_printf.h
More file actions
35 lines (31 loc) · 1.54 KB
/
Copy pathft_printf.h
File metadata and controls
35 lines (31 loc) · 1.54 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tenomoto <tenomoto@student.42tokyo.jp +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/20 14:28:08 by tenomoto #+# #+# */
/* Updated: 2025/11/13 14:30:15 by tenomoto ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include "libft/libft.h"
# include <stdarg.h>
# include <stdint.h>
# include <stdlib.h>
# include <unistd.h>
# include <limits.h>
int ft_printf(const char *format, ...);
char *dec_to_hex(uintptr_t dec);
char *ft_uitoa(unsigned int n);
int process_char(const char *format, va_list ap, int i, int *len);
int process_to_hex(const char *format, va_list ap, int i, int *len);
int process_decimal(va_list ap, int i, int *len);
int process_percent(int i, int *len);
int process_undecimal(va_list ap, int i, int *len);
int process_void(va_list ap, int i, int *len);
void ft_putchar_fd(char c, int fd);
void ft_putstr_fd(char *s, int fd);
#endif