/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   error.c                                            :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: ael-bekk <ael-bekk@student.1337.ma>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2022/07/25 18:38:34 by mel-hada          #+#    #+#             */
/*   Updated: 2022/08/08 12:30:53 by ael-bekk         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "../inc/cub3d.h"
void error(char *str,int m)
{
    int i;
    
    i = 0;
    write(2,"\033[0;33m",8);
    write(2,str,ft_strlen(str));
    write(2,"\033[0m",5);
    if (m == 1)
        exit(1);
}