libft
|
#include "libft.h"
Go to the source code of this file.
Functions | |
char * | ft_strnew (size_t size) |
Allocates a fresh string. More... | |
char* ft_strnew | ( | size_t | size | ) |
Allocates a fresh string.
Allocates (with malloc
) and returns a “fresh” string ending with '\0'
. Each character of the string is initialized at '\0'
.
size | The size of the string to be allocated. |
0
or NULL
if allocation failed. Definition at line 25 of file ft_strnew.c.