text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strnew.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: rpapagna <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/02/20 00:13:27 by rpapagna          #+#    #+#             */
  /*   Updated: 2019/04/05 13:33:07 by rpapagna         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "../includes/libft.h"
  
  char	*ft_strnew(size_t size)
  {
  	char	*str;
  
  	if (!(str = (char *)malloc(sizeof(char) * size + 1)))
  		return (NULL);
  	ft_bzero(str, size + 1);
  	return (str);
  }
  