c_piscine__offshore_mains/c00/ex07.c

29 lines
507 B
C
Raw Normal View History

2023-11-21 19:10:07 +00:00
void ft_putnbr(int);
void ft_putchar(char);
#include <limits.h>
#include <stdio.h>
2023-11-21 19:10:07 +00:00
int main(void)
{
printf("%d = \n", INT_MIN);
ft_putnbr(INT_MIN);
2023-11-21 19:10:07 +00:00
ft_putchar('\n');
ft_putnbr(-7141);
ft_putchar('\n');
ft_putnbr(-1);
ft_putchar('\n');
ft_putnbr(0);
ft_putchar('\n');
ft_putnbr(42);
ft_putchar('\n');
ft_putnbr(421);
ft_putchar('\n');
ft_putnbr(1945);
ft_putchar('\n');
ft_putnbr(0xDEAD);
ft_putchar('\n');
ft_putnbr(0xBADF00D);
ft_putchar('\n');
ft_putnbr(INT_MAX);
2023-11-21 19:10:07 +00:00
ft_putchar('\n');
}