![]() |
tgrekov-fdf
HIVE fdf May 2024
|
Definition in file ft_strdup.c.
#include "libft.h"Go to the source code of this file.
Functions | |
| char * | ft_strdup (const char *s1) |
Allocates memory for, copies to, and returns a duplicate of s1. | |
| char * ft_strdup | ( | const char * | s1 | ) |
Allocates memory for, copies to, and returns a duplicate of s1.
| [in] | s1 | Null-terminated string to copy |
| char* | Null-terminated, duplicate string, result of malloc |
Definition at line 28 of file ft_strdup.c.
References ft_memcpy(), and ft_strlen().