text: /*
  ** EPITECH PROJECT, 2020
  ** my_strdup.c
  ** File description:
  ** copy and allocate memory for a string
  */
  
  #include <stdlib.h>
  
  size_t my_strlen(char const *str);
  
  char *my_strcpy(char *dest, char const *src);
  
  char *my_strdup(char const *str)
  {
      char *array_to_return = malloc(sizeof(char) * (my_strlen(str) + 1));
  
      my_strcpy(array_to_return, str);
      return (array_to_return);
  }
  