2023-04-26 07:02:44 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* ft_eprintf.c :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2022/10/06 22:01:28 by cchauvet #+# #+# */
|
2023-04-26 07:18:45 -04:00
|
|
|
/* Updated: 2023/04/26 11:17:15 by cchauvet ### ########.fr */
|
2023-04-26 07:02:44 -04:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "ft_printf.h"
|
|
|
|
|
|
|
|
int ft_eprintf(const char *format, ...)
|
|
|
|
{
|
|
|
|
va_list va;
|
|
|
|
int i;
|
|
|
|
|
2023-04-26 07:18:45 -04:00
|
|
|
ft_putstr_fd_p(2, "cub3d: ");
|
2023-04-26 07:02:44 -04:00
|
|
|
va_start(va, format);
|
|
|
|
i = ft_vdprintf(2, format, va);
|
|
|
|
va_end(va);
|
2023-04-26 07:18:45 -04:00
|
|
|
ft_putchar_fd_p(2, '\n');
|
2023-04-26 07:02:44 -04:00
|
|
|
return (i);
|
|
|
|
}
|