-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr.c
More file actions
executable file
·26 lines (23 loc) · 1.04 KB
/
ft_putstr.c
File metadata and controls
executable file
·26 lines (23 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cmukwind <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/06/01 08:46:32 by cmukwind #+# #+# */
/* Updated: 2018/08/23 11:47:39 by cmukwind ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putstr(char const *str)
{
int index;
index = 0;
while (str[index] != '\0')
{
ft_putchar(str[index]);
index++;
}
return (index);
}