-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbmp_utils.c
24 lines (22 loc) · 1.06 KB
/
bmp_utils.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
/* ************************************************************************** */
/* */
/* :::::::: */
/* bmp_utils.c :+: :+: */
/* +:+ */
/* By: dnoom <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/04/06 11:25:30 by dnoom #+# #+# */
/* Updated: 2022/04/06 11:25:30 by dnoom ######## odam.nl */
/* */
/* ************************************************************************** */
#include "miniRT.h"
#include <stdlib.h>
#include <stdio.h>
void check_magic(uint16_t file_type, char *file)
{
if (file_type != 0x4D42)
{
printf("file %s\n", file);
error("no bmp!");
}
}