-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.c
25 lines (23 loc) · 1.22 KB
/
error.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ysingh <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/07 22:08:25 by ysingh #+# #+# */
/* Updated: 2022/12/09 14:24:00 by ysingh ### ########.fr */
/* */
/* ************************************************************************** */
#include "fractol.h"
void ft_arg_error(mlx_t *mlx)
{
ft_printf("\033[31m");
ft_printf("Usage: ./fractol [fractal name]\n");
ft_printf("Available fractals: mandelbrot, julia [Constants], burningship");
ft_printf("\nConstants: (Only for julia fractal) [real] [imaginary]\n");
ft_printf("\033[0m");
if (mlx != NULL)
mlx_terminate(mlx);
exit(0);
}