Dear Friend,
 I am new here, please check my piece of code. My intention is to copy names to in a structure array element. I am new to c, unable to understand what is happeining...please guide me?

```
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct new_st{

      const char name[100];
      int value;

    }var1;

char *myStringcopy(char *dst, const char *src)
{
         char *ptr;
         ptr  = dst;
        while(*dst++!=NULL)
        {
           *dst++=*src++;
          }

        return(ptr);
 }

 int main()
{

   char my_str[] = {"HelloWord", "MY var1", "my var2"};

   var1 *new_st1;

   new_st1 = malloc(sizeof(struct new_st));

     //trying just first name then i thought of using for loop for rest

      myStringcopy(my_str, new_st1->name[0]);

       printf("%s\n",new_st1->name[0]);

   return 0;

}

```