-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr.c
More file actions
28 lines (25 loc) · 1.05 KB
/
ft_putstr.c
File metadata and controls
28 lines (25 loc) · 1.05 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tarchimb <tarchimb@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/17 09:03:41 by tarchimb #+# #+# */
/* Updated: 2021/11/17 12:16:25 by tarchimb ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putstr(char *str)
{
int i;
if (!str)
return (ft_putstr("(null)"));
i = 0;
while (str[i] != '\0')
{
ft_putchar(str[i]);
i++;
}
return (i);
}