Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_malloc_strdup.c File Reference

The file containing the my_malloc_strdup function. More...

#include "mymemory.h"

Functions

char * my_malloc_strdup (char const *src)
 Duplicates a string with my_malloc.
 

Detailed Description

The file containing the my_malloc_strdup function.

Author
Nicolas TORO

Function Documentation

◆ my_malloc_strdup()

char * my_malloc_strdup ( char const * src)

Duplicates a string with my_malloc.

Note
The duplicated string must be free only with my_free
Parameters
srcThe string to duplicate
Returns
char * A pointer to the duplicated string
Author
Nicolas TORO