28 lines
1008 B
C
28 lines
1008 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_is_negative.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2026/03/04 10:08:57 by lclerel- #+# #+# */
|
|
/* Updated: 2026/03/04 10:12:51 by lclerel- ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
void ft_is_negative(int n)
|
|
{
|
|
char c;
|
|
|
|
if (nb >= 0)
|
|
{
|
|
c = 'P';
|
|
}
|
|
else
|
|
{
|
|
c = 'N';
|
|
}
|
|
}
|