fork download
  1. #include<stdio.h>
  2. void myStrcpy(char s[],char t[]){
  3. int i;
  4. for(i=0;s[i]!='\0';i++){
  5. t[i]=s[i];
  6. }t[i]='\0';
  7.  
  8. }
  9. int main(){
  10. int len;
  11. char s[100];
  12. char t[100];
  13. scanf("%s",s);
  14. myStrcpy(s,t);
  15. printf("%s",t);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5292KB
stdin
abcd
stdout
abcd