21 lines
1001 B
C
21 lines
1001 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_is_negative.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: adjoly <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2023/07/12 20:51:36 by adjoly #+# #+# */
|
||
|
/* Updated: 2023/07/13 11:47:47 by adjoly ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
#include <unistd.h>
|
||
|
|
||
|
void ft_is_negative(int n)
|
||
|
{
|
||
|
if (n < 0)
|
||
|
write(1, "N", 1);
|
||
|
else
|
||
|
write(1, "P", 1);
|
||
|
}
|