fork(1) download
  1. #include <stdio.h>
  2.  
  3. void strcat(char *s, char *t){
  4. while(*s++ !='\0');
  5. s--;
  6. while(*s++=*t++);
  7. }
  8.  
  9.  
  10. int main()
  11. {
  12. char s[100]= "test string";
  13. char t[] = "stroka";
  14.  
  15. strcat(s,t);
  16. printf("%s",s);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
test stringstroka