42_ft_printf/printf.h

41 lines
1.6 KiB
C
Raw Normal View History

2022-10-06 20:30:03 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
2022-10-10 13:33:47 -04:00
/* 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-10-10 13:33:47 -04:00
/* Updated: 2022/10/10 19:11:15 by cchauvet ### ########.fr */
2022-10-06 20:30:03 -04:00
/* */
/* ************************************************************************** */
2022-10-10 13:33:47 -04:00
#ifndef PRINTF_H
# define PRINTF_H
2022-10-06 20:30:03 -04:00
# include <stdlib.h>
# include <unistd.h>
# include <stdarg.h>
size_t ft_strlen(const char *s);
char *ft_strchr(const char *s, int c);
2022-10-10 13:33:47 -04:00
char *ft_strjoin(char *s1, char *s2);
2022-10-06 20:30:03 -04:00
char *ft_itoa(int n);
char *ft_ctoa(int c);
2022-10-10 13:33:47 -04:00
char *ft_strdup(const char *s);
2022-10-06 20:30:03 -04:00
char *ft_ptoa(void *ptr);
char *ft_utoa(unsigned int n);
2022-10-10 13:33:47 -04:00
char *ft_ltoabase(long int n, char *base);
char *ft_ultoabase(long unsigned int n, char *base);
2022-10-06 20:30:03 -04:00
int ft_printf(const char *format, ...);
int ft_vprintf(const char *format, va_list va);
char *ft_vsprintf(char *str, const char *format, va_list va);
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
void ft_putchar_fd(char c, int fd);
void ft_putstr_fd(char *s, int f);
#endif