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

The file containing the my_strdup function. More...

#include "my.h"

Functions

char * my_strdup (char const *src)
 Duplicates a string (src) and returns the new string.
 

Detailed Description

The file containing the my_strdup function.

Author
Nicolas TORO

Function Documentation

◆ my_strdup()

char * my_strdup ( const char * src)

Duplicates a string (src) and returns the new string.

Parameters
srcThe string to duplicate
Returns
char* The duplicated string
Author
Nicolas TORO