#include void copy_str( char *s, char *t, int n){ int i; for( i=0;i *t++=*s++ ; *t='\0' ;}int main(){ char a[20]="hello world" , b[20] ; copy_str( a, b, 5 ); printf("b=%s\n", b ); return 0;}