42_ft_printf/ft_printf.h

41 lines
1.7 KiB
C
Raw Normal View History

2022-10-06 20:30:03 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
2022-10-23 13:01:50 -04:00
/* ft_printf.h :+: :+: :+: */
2022-10-06 20:30:03 -04:00
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/26 14:47:54 by cchauvet #+# #+# */
2022-11-07 13:47:30 -05:00
/* Updated: 2022/11/07 19:41:50 by cchauvet ### ########.fr */
2022-10-06 20:30:03 -04:00
/* */
/* ************************************************************************** */
2022-10-23 13:01:50 -04:00
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
2022-10-06 20:30:03 -04:00
# include <unistd.h>
# include <stdarg.h>
size_t ft_strlen(const char *s);
char *ft_strchr(const char *s, int c);
2022-10-23 13:01:50 -04:00
int ft_isdigit(int c);
int ft_skipflag(const char *str);
int ft_isarg(int c);
2022-10-06 20:30:03 -04:00
2022-10-23 13:01:50 -04:00
int ft_dprintptr(int fd, void *ptr);
int ft_dprintl_base(int fd, long long n, char *base);
int ft_dprintul_base(int fd, unsigned long long n, char *base);
int ft_dprintul(int fd, unsigned long long n);
int ft_dprintx(int fd, unsigned int n);
int ft_dprint_upperx(int fd, unsigned int n);
int ft_dprintflag(int fd, const char *flag, va_list va);
int ft_dprintarg(int fd, int c, va_list va);
2022-10-06 20:30:03 -04:00
int ft_printf(const char *format, ...);
2022-10-10 13:33:47 -04:00
int ft_vdprintf(int fd, const char *format, va_list va);
2022-10-06 20:30:03 -04:00
2022-10-23 13:01:50 -04:00
int ft_putchar_fd(int fd, char c);
int ft_putstr_fd(int fd, char *str);
2022-10-06 20:30:03 -04:00
#endif