32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_putstr.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/06/05 17:09:49 by whaffman #+# #+# */
|
|
/* Updated: 2024/06/05 17:19:32 by whaffman ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
void ft_putstr(char *str)
|
|
{
|
|
while (*str != '\0')
|
|
{
|
|
write(1, str, 1);
|
|
str++;
|
|
}
|
|
}
|
|
/*
|
|
#include <stdio.h>
|
|
int main(void)
|
|
{
|
|
char *string = "Hello World!\n";
|
|
ft_putstr(string);
|
|
return (0);
|
|
}
|
|
*/
|