-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprintf.h
More file actions
33 lines (26 loc) · 1.3 KB
/
printf.h
File metadata and controls
33 lines (26 loc) · 1.3 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: acastrov <acastrov@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/08 19:32:20 by acastrov #+# #+# */
/* Updated: 2024/10/14 21:09:44 by acastrov ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PRINTF_H
# define PRINTF_H
#include "libft/libft.h"
#include <stdarg.h>
#include <stdint.h>
// Reference to main ft_printf
int ft_printf(char const *format, ...);
// Modified libft functions to return int, libft_sub_ft.c
int ft_putstr_printf(char *s);
int ft_putnbr_printf(int n);
int ft_putuint_printf(unsigned int n);
// FT that uses hex
int ft_hex(unsigned int n, char specifier);
int ft_ptr(uintptr_t ptr, int flag);
#endif