26 lines
1,018 B
C
26 lines
1,018 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_is_negative.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2016/10/27 10:59:43 by gtertysh #+# #+# */
|
||
|
/* Updated: 2016/10/27 20:23:36 by gtertysh ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
int ft_putchar(char c);
|
||
|
|
||
|
void ft_is_negative(int n)
|
||
|
{
|
||
|
if (n >= 0)
|
||
|
{
|
||
|
ft_putchar('P');
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ft_putchar('N');
|
||
|
}
|
||
|
}
|