printf/libft/tests/mandatory/putstr_fd/test4.c

33 lines
1.1 KiB
C
Raw Normal View History

2023-04-15 06:55:33 +02:00
/* ************************************************************************** */
/* */
2023-10-26 18:32:55 +02:00
/* :::::::: */
/* test4.c :+: :+: */
/* +:+ */
/* By: houtworm <codam@houtworm.net> +#+ */
/* +#+ */
/* Created: 2023/02/21 02:58:12 by houtworm #+# #+# */
/* Updated: 2023/10/18 17:17:07 by houtworm ######## odam.nl */
2023-04-15 06:55:33 +02:00
/* */
/* ************************************************************************** */
#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);
}