piscine/c04/ex01/ft_putstr.c
Willem Haffmans 607ce08c18 all
2024-09-10 00:18:01 +02:00

37 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/11 15:02:05 by whaffman #+# #+# */
/* Updated: 2024/06/12 11:13:48 by whaffman ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr(char *str)
{
while (*str)
{
write(1, str, 1);
str++;
}
}
#ifdef DEBUG
int main(void)
{
ft_putstr("Hello\n");
ft_putstr("");
ft_putstr("Don't ");
ft_putstr("Panic!!\n");
ft_putstr("And don't forget your towel\n");
return (0);
}
#endif