-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr.c
33 lines (31 loc) · 1.15 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbutt <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/25 20:10:59 by mbutt #+# #+# */
/* Updated: 2019/04/24 18:12:19 by mbutt ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr(char const *s)
{
if (s)
while (*s)
write(1, s++, 1);
/*
** Using ft_strlen, instead of while loop;
if(s)
write(1, s, ft_strlen(s));
*/
}
/*
** int main (void)
** {
** char *string1 = "Testing";
** ft_putstr(string1);
** return(0);
**}
*/