ft_is_negative.c

This function takes a number (let’s call it n) as input. It checks whether n is negative or not.

So, in essence, this function determines the sign of the given number and prints ‘N’ for negative numbers and ‘P’ for non-negative numbers.