#include <stdio.h>

char *mystrcpy(char *dst, const char *src)
{
   char *start = dst;
   do {
      *dst++ = *src;
   } while ( *src++ );
   return start;
}

int main (void)
{
   char text[12];
   puts(mystrcpy(text, "Hello world"));
   return 0;
}

/* my output
Hello world
*/
1
Contributor
0
Replies
1
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.