-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printf.h
31 lines (27 loc) · 1.55 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ozamora- <ozamora-@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/17 11:43:42 by ozamora- #+# #+# */
/* Updated: 2024/10/22 14:49:31 by ozamora- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <unistd.h> // To use system calls like write, open, read, close.
# include <stdlib.h> // To use memory allocation (malloc, free) and size_t.
# include <stdio.h> // To use printf for testing
# include <stdarg.h> // To use va_list, va_start, va_copy, va_arg and va_end
# include <limits.h> // To use MAX and MIN definitions, to check int overflows
int ft_printf(const char *format, ...);
size_t ft_putchar(char c);
size_t ft_putstr(char *str);
size_t ft_putptr(void *ptr);
size_t ft_putnbr(int nbr);
size_t ft_putnbr_unsigned(unsigned int nbr);
size_t ft_putnbr_base(unsigned long number, char *base);
size_t ft_strlen(const char *s);
#endif