fractol/libft/tests/mandatory/putstr_fd/test14.c

32 lines
1.1 KiB
C
Raw Normal View History

2023-03-07 05:31:00 +01:00
/* ************************************************************************** */
/* */
/* .--. _ */
/* test14.c |o_o || | */
/* |:_/ || |_ _ ___ __ */
/* By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / */
/* (| | )|_| |_| |> < */
/* Created: 2023/02/21 02:58:12 by houtworm /'\_ _/`\__|\__,_/_/\_\ */
/* Updated: 2023/02/23 20:07:00 by houtworm \___)=(___/ */
/* */
/* ************************************************************************** */
#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, 2);
free (str);
return (0);
}