libft/tests/mandatory/putstr_fd/test3.c
2023-10-26 18:06:04 +02:00

32 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* test3.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 */
/* */
/* ************************************************************************** */
#include "../../tmp/libft.h"
#include <stdio.h>
int main(void)
{
int i;
char *str;
i = 32;
str = malloc(8 * 200);
while (i < 232)
{
str[i - 32] = i;
i++;
}
ft_putstr_fd(str, 1);
free (str);
return (0);
}