-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strnew.c
executable file
·19 lines (17 loc) · 1006 Bytes
/
ft_strnew.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnew.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/22 10:09:01 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:40:31 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
#include "libft.h"
char *ft_strnew(size_t size)
{
return ((char *)ft_memalloc(size + 1));
}