netwhat/libft/tests/mandatory/atoi/test10.c
2023-03-07 05:20:37 +01:00

27 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* .--. _ */
/* test10.c |o_o || | */
/* |:_/ || |_ _ ___ __ */
/* By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / */
/* (| | )|_| |_| |> < */
/* Created: 2023/02/21 02:01:57 by houtworm /'\_ _/`\__|\__,_/_/\_\ */
/* Updated: 2023/02/21 23:01:55 by djonker \___)=(___/ */
/* */
/* ************************************************************************** */
#include "../../tmp/libft.h"
#include <stdio.h>
int main(void)
{
char *str;
int a;
str = "123+456";
a = 123;
if (ft_atoi(str) != a)
return (1);
return (0);
}