minishell/libft/tests/mandatory/atoi/test7.c
2023-06-06 16:48:34 +02:00

27 lines
1.0 KiB
C

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