-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isodd.c
20 lines (18 loc) · 977 Bytes
/
ft_isodd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isodd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lmartine <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/03/10 21:59:03 by lmartine #+# #+# */
/* Updated: 2018/03/10 22:00:21 by lmartine ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isodd(int c)
{
if (c % 2)
return (1);
return (0);
}