ft_putstr.c

This commit is contained in:
Timo Schmidt 2023-03-27 18:57:34 +02:00
parent 038cded5c0
commit f7e1cd0b41
1 changed files with 26 additions and 0 deletions

26
ex01/ft_putstr.c Normal file
View File

@ -0,0 +1,26 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 18:56:17 by tischmid #+# #+# */
/* Updated: 2023/03/27 18:57:25 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr(char *str)
{
while (*str)
write(1, str++, 1);
}
/* ////
int main(void)
{
ft_putstr("HELLO WORLD\n");
}
*/ ////