first commit
This commit is contained in:
20
finish/C00/ex04/ft_is_negative.c
Normal file
20
finish/C00/ex04/ft_is_negative.c
Normal file
@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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);
|
||||
}
|
Reference in New Issue
Block a user