-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr.c
31 lines (28 loc) · 1.14 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pix <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/17 14:41:41 by stales #+# #+# */
/* Updated: 2022/04/04 02:58:30 by pix ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <unistd.h>
/**
* @brief Write the string s to the standard output
*
* @param s String to write
*
* @return (void) None.
*/
void ft_putstr(char const *s)
{
char *tmp;
tmp = (char *)s;
while (tmp && *tmp)
tmp++;
write(1, s, tmp - s);
}