aboutsummaryrefslogtreecommitdiff
path: root/ft_putstr.c
blob: 1175e68024b3b18ef64ac48d3e1296a0b45cacdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_putstr.c                                        :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2019/10/07 09:52:12 by cacharle          #+#    #+#             */
/*   Updated: 2019/11/20 02:03:11 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include <unistd.h>
#include "libft.h"

void	ft_putstr(char const *s)
{
	if (s == NULL)
		return ;
	write(STDOUT_FILENO, s, ft_strlen(s));
}