15 lines
141 B
C
15 lines
141 B
C
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
void ft_is_negative(int n)
|
||
|
{
|
||
|
if (n < 0)
|
||
|
{
|
||
|
write(1, "N", 1);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
write(1, "P", 1);
|
||
|
}
|
||
|
}
|