This commit is contained in:
root
2026-02-23 00:04:03 +00:00
commit fadb328b05
17 changed files with 573 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_negative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sgongas <sgongas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/22 22:48:11 by sgongas #+# #+# */
/* Updated: 2026/02/22 23:12:21 by sgongas ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_is_negative(int n)
{
if (n < 0)
write(1, "N", 1);
else
write(1, "P", 1);
}
// int main(void)
// {
// ft_is_negative(-1);
// return (0);
// }