Version Final
This commit is contained in:
35
ft_printf.h
Normal file
35
ft_printf.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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
|
||||
Reference in New Issue
Block a user