Files
Printf42/ft_printf.h
Hugo Manuel Tamayo Olea 17681f5124 Version Final
2026-01-11 17:57:21 +01:00

36 lines
1.5 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: htamayo- <htamayo-@student.42malaga.c +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/03 18:55:18 by htamayo- #+# #+# */
/* Updated: 2025/12/03 19:39:37 by htamayo- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include <stdlib.h>
# include <unistd.h>
# define HEX_UPP_BASE "0123456789ABCDEF"
# define HEX_LOW_BASE "0123456789abcdef"
int ft_printf(char const *str, ...);
/* format functions */
void ft_putchar_pf(char c, size_t *counter);
void ft_putstr_pf(char *str, size_t *counter);
void ft_putnbr_pf(int num, size_t *counter);
void ft_putuint_pf(unsigned int num, size_t *counter);
void ft_puthex_pf(unsigned int num, size_t *counter, char *base);
void ft_putptr_pf(void *ptr, size_t *counter);
/* aux function */
char *ft_aux_pf(unsigned long long n, char *base);
#endif