-
Notifications
You must be signed in to change notification settings - Fork 12
/
ft_putstr.c
36 lines (32 loc) · 1.13 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
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <apuchill@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/25 23:34:35 by apuchill #+# #+# */
/* Updated: 2020/10/30 19:56:53 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: N/A
** SYNOPSIS: output string to stdout
**
** DESCRIPTION:
** Outputs the string ’s’ to stdout.
*/
#include "libft.h"
void ft_putstr(char *s)
{
int i;
if (s != NULL)
{
i = 0;
while (s[i])
{
ft_putchar(s[i]);
i++;
}
}
}