-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_is_negative.c
31 lines (28 loc) · 1.05 KB
/
ft_is_negative.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_is_negative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: danalvar <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/19 17:58:54 by danalvar #+# #+# */
/* Updated: 2024/10/19 18:07:34 by danalvar ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_is_negative(int n)
{
if (n >= 0)
{
write(1, "P", 1);
}
else
{
write(1, "N", 1);
}
}
/*int main(void)
{
ft_is_negative(0);
return (0);
}*/