pushswap/libft/tests/mandatory/putstr_fd/test4.c
2023-03-07 05:42:47 +01:00

33 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* .--. _ */
/* test4.c |o_o || | */
/* |:_/ || |_ _ ___ __ */
/* By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / */
/* (| | )|_| |_| |> < */
/* Created: 2023/02/21 02:58:12 by houtworm /'\_ _/`\__|\__,_/_/\_\ */
/* Updated: 2023/02/23 20:21:46 by houtworm \___)=(___/ */
/* */
/* ************************************************************************** */
#include "../../tmp/libft.h"
#include <stdio.h>
int main(void)
{
int i;
int j;
char *stri;
i = 0;
stri = malloc(8 * 1000000);
while (i < 999999)
{
stri[i] = 'a';
i++;
}
ft_putstr_fd(stri, 1);
free (stri);
return (0);
}