rt/libft/ft_strnew.c

19 lines
985 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnew.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: scebula <scebula@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/26 10:27:40 by scebula #+# #+# */
/* Updated: 2015/11/26 10:30:11 by scebula ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strnew(size_t size)
{
return ((char*)ft_memalloc(size + 1));
}