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

29 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* .--. _ */
/* test2.c |o_o || | */
/* |:_/ || |_ _ ___ __ */
/* By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / */
/* (| | )|_| |_| |> < */
/* Created: 2023/02/21 02:47:24 by houtworm /'\_ _/`\__|\__,_/_/\_\ */
/* Updated: 2023/02/23 16:22:29 by houtworm \___)=(___/ */
/* */
/* ************************************************************************** */
#include "../../tmp/libft.h"
#include <stdio.h>
#include <string.h>
int main(void)
{
int rtrn;
char *b;
b = ft_calloc(3, 1);
rtrn = 0;
if (memcmp(b, "\0\0\0", 3))
rtrn = 1;
free(b);
return (rtrn);
}