-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr.c
executable file
·34 lines (30 loc) · 1.11 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
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mwilliam <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/05 17:58:31 by mwilliam #+# #+# */
/* Updated: 2016/11/14 10:23:48 by mwilliam ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Outputs the string s to the standard output
*/
void ft_putstr(char const *s)
{
char const *str;
int index;
index = 0;
str = s;
if (str)
{
while (str[index])
{
ft_putchar(str[index]);
index++;
}
}
}