Cub3D
 
Loading...
Searching...
No Matches
ft_safe.c File Reference
#include "ft_print.h"
#include "ft_printf.h"
#include <errno.h>
#include <fcntl.h>
#include <string.h>
Include dependency graph for ft_safe.c:

Functions

int safe_open (char *file_name)
 Try to open the map file specified by map_name.
 
int safe_close (int *fd)
 Close safely the file descriptor Modify the file descriptor to -1 after closing it.