42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_malloc_strdup_word_array.c File Reference

The file containing the my_malloc_strdup_word_array function. More...

#include "mymemory.h"

Functions

char ** my_malloc_strdup_word_array (char **array)
 Duplicates a word array (array) with my_malloc.
 

Detailed Description

The file containing the my_malloc_strdup_word_array function.

Author
Nicolas TORO

Function Documentation

◆ my_malloc_strdup_word_array()

char ** my_malloc_strdup_word_array ( char ** array)

Duplicates a word array (array) with my_malloc.

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