cub3d/libft/tests/mandatory/atoi/test2.c

27 lines
1.0 KiB
C
Raw Normal View History

2023-10-25 13:56:45 +02:00
/* ************************************************************************** */
/* */
/* .--. _ */
/* test2.c |o_o || | */
/* |:_/ || |_ _ ___ __ */
/* By: djonker <djonker@student.codam.nl> // \ \ __| | | \ \/ / */
/* (| | )|_| |_| |> < */
/* Created: 2023/02/21 22:32:56 by djonker /'\_ _/`\__|\__,_/_/\_\ */
/* Updated: 2023/02/21 22:58:48 by djonker \___)=(___/ */
/* */
/* ************************************************************************** */
#include "../../tmp/libft.h"
#include <stdio.h>
int main(void)
{
char *str;
int a;
str = "-2147483648";
a = -2147483648;
if (ft_atoi(str) != a)
return (1);
return (0);
}