minishell
ft_printf.h
Go to the documentation of this file.
1 /* ************************************************************************** */
2 /* */
3 /* ::: :::::::: */
4 /* ft_printf.h :+: :+: :+: */
5 /* +:+ +:+ +:+ */
6 /* By: kfujita <kfujita@student.42tokyo.jp> +#+ +:+ +#+ */
7 /* +#+#+#+#+#+ +#+ */
8 /* Created: 2022/04/22 01:07:52 by kfujita #+# #+# */
9 /* Updated: 2023/02/09 00:15:51 by kfujita ### ########.fr */
10 /* */
11 /* ************************************************************************** */
12 
13 #ifndef FT_PRINTF_H
14 # define FT_PRINTF_H
15 
16 # include <stdarg.h>
17 
18 int ft_printf(const char *format, ...);
19 int ft_dprintf(int fd, const char *format, ...);
20 
21 // argument type is different with original `vprintf`
22 // ref: https://stackoverflow.com/questions/8047362
23 int ft_vprintf(const char *format, va_list *args);
24 int ft_vdprintf(int fd, const char *format, va_list *args);
25 
26 #endif
int ft_printf(const char *format,...)
Definition: ft_printf.c:18
int ft_vprintf(const char *format, va_list *args)
Definition: ft_printf.c:40
int ft_dprintf(int fd, const char *format,...)
Definition: ft_printf.c:29
int ft_vdprintf(int fd, const char *format, va_list *args)
Definition: ft_printf.c:45