-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isnegative.c
31 lines (28 loc) · 1.08 KB
/
ft_isnegative.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
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isnegative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dalves-p <dalves-p@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/06/29 16:24:17 by dalves-p #+# #+# */
/* Updated: 2021/06/29 16:26:04 by dalves-p ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** LIBRARY: N/A
** DESCRIPTION:
** The ft_isnegative() function checks if a number is negative.
*/
int ft_isnegative(int n)
{
if (n < 0)
{
return (1);
}
else
{
return (0);
}
}