ft_printf/includes/_internal.h
Raphael a1f18a6f97
feat: adding internal header
- Adding the internal header allow to don't get all the function needed
by printf in the main header
2025-09-19 17:27:19 +02:00

48 lines
1.5 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* _internal.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/19 17:15:50 by rparodi #+# #+# */
/* Updated: 2025/09/19 17:25:25 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef _INTERNAL_H
# define _INTERNAL_H
# include <stdarg.h>
# include <stdint.h>
# include <stddef.h>
typedef int (*t_func)(va_list, int fd);
typedef struct s_format
{
char character;
t_func function;
} t_format;
size_t ft_strlen(const char *str);
char *itoa_base(uint64_t nbr, char *base);
int flag_c(va_list args, int fd);
int flag_i(va_list args, int fd);
int flag_p(va_list args, int fd);
int flag_percent(va_list args, int fd);
int flag_s(va_list args, int fd);
int flag_u(va_list args, int fd);
int flag_x(va_list args, int fd);
int flag_x_maj(va_list args, int fd);
#endif