-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr.c
30 lines (26 loc) · 1.05 KB
/
ft_putstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: danalvar <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/21 22:46:59 by danalvar #+# #+# */
/* Updated: 2024/10/21 22:54:40 by danalvar ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr(char *str)
{
while (*str != '\0')
{
write (1, str, 1);
str++;
}
}
/*int main(void)
{
char *str;
str = "Hello :)";
ft_putstr(str);
}*/