ft_putstr.c

This commit is contained in:
Timo Schmidt 2023-03-19 05:21:46 +01:00
parent e6e33e4160
commit 8056af83db
1 changed files with 32 additions and 0 deletions

32
ex05/ft_putstr.c Normal file
View File

@ -0,0 +1,32 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/18 03:11:53 by tischmid #+# #+# */
/* Updated: 2023/03/19 04:55:09 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr(char *str)
{
int i;
i = 0;
while (str[i] != 0)
write(1, &str[i++], 1);
}
/* ////
#include <stdio.h>
int main(void)
{
ft_putstr("Hello World\n");
return (0);
}
*/ ////