#include<stdio.h>
void mystrcpy(char *, char *);
main( )
{ 
  char source[ ] = "hello world" ;
  char target[20] ;
  mystrcpy ( target, source ) ;
  printf ( "source string = %s\n", source ) ;
  printf ( "target string = %s\n", target ) ;
  system("pause");
}
void mystrcpy ( char *t, char *s )
{
  while ( *s != '\0' )
  {
    *t = *s;
    s++;
    t++ ;
  }
  *t = '\0' ;
}

