/*WAP that look-alike of the function strcopy( ) */
#include<stdio.h>
#include<conio.h>
main( )
{
char source[ ] = "codezworld" ;
char target[20] ;
xstrcpy ( target, source ) ;
printf ( "\nsource string = %s", source ) ;
printf ( "\ntarget string = %s", target ) ;
}
xstrcpy ( char *t, char *s )
{
while ( *s != '\0' )
{
*t = *s ;
s++ ;
t++ ;
}
*t = '\0' ;
}