blob: 923384659b43135948d1abe0a1bc98ada66dd078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <cub3d.h>
#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
int8_t
ft_check_not_found(const char *path)
{
int fd;
if ((fd = open(path, O_RDONLY)) < 0)
return (-1);
close(fd);
return (0);
}
|