From b15be48033300c00ed2981fb69928905e3a85e86 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 4 Mar 2020 15:30:59 +0100 Subject: Init bmp --- src/ft_init_bmp.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/ft_init_bmp.c (limited to 'src/ft_init_bmp.c') diff --git a/src/ft_init_bmp.c b/src/ft_init_bmp.c new file mode 100644 index 0000000..cc8d59b --- /dev/null +++ b/src/ft_init_bmp.c @@ -0,0 +1,27 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_init_bmp.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:28:46 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:28:46 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include +#include + +t_bmp + ft_init_bmp(void) +{ + t_bmp bmp; + + bmp.file_type = 0x4d42; + bmp.file_size = 0; + bmp.reserv_one = 0; + bmp.reserv_two = 0; + bmp.offset_data = 0; + return (bmp); +} -- cgit v1.2.3