Cub3D
Loading...
Searching...
No Matches
is_hit_flag.c
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* is_hit_flag.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/10/15 13:43:50 by kamitsui #+# #+# */
9/* Updated: 2024/10/15 14:16:15 by kamitsui ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include <stdbool.h>
14
15bool is_hit_flag(int flag, int bit)
16{
17 if ((flag & bit) > 0)
18 return (true);
19 return (false);
20}