42_C_PISCINE/C/c00v3/ex04/ft_is_negative.c
Camille Chauvet 29ed24d567 init
2023-05-17 16:45:25 +00:00

26 lines
1012 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_negative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/14 14:14:39 by cchauvet #+# #+# */
/* Updated: 2022/07/16 10:38:55 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_is_negative(int n)
{
char a;
a = 'N';
if (n >= 0)
{
a = 'P';
}
write(1, &a, 1);
}