core: add 'cub3d: ' befort and '\n' after display error message
This commit is contained in:
parent
537283e940
commit
f0526c2640
@ -6,7 +6,7 @@
|
||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/06 22:01:28 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/02/01 16:18:46 by cchauvet ### ########.fr */
|
||||
/* Updated: 2023/04/26 11:17:15 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -17,8 +17,10 @@ int ft_eprintf(const char *format, ...)
|
||||
va_list va;
|
||||
int i;
|
||||
|
||||
ft_putstr_fd_p(2, "cub3d: ");
|
||||
va_start(va, format);
|
||||
i = ft_vdprintf(2, format, va);
|
||||
va_end(va);
|
||||
ft_putchar_fd_p(2, '\n');
|
||||
return (i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user