fork(4) download
  1.  
  2. i;f(char*s){for(;putchar(*s);)i=s[i]^s[1]||!s++;}
  3.  
  4.  
  5. int main( void )
  6. {
  7. f( "aabbcccc" ) ;
  8. puts( "" ) ;
  9. f( "doorbell" ) ;
  10. puts( "" ) ;
  11. f( "uuuuuuuuuz" ) ;
  12. puts( "" ) ;
  13. f( "q" ) ;
  14. puts( "" ) ;
  15. f( "xyxyxy" ) ;
  16. puts( "" ) ;
  17. f( "xxxyyy" ) ;
  18. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
aaabbbccccc
ddooorrbbeelll
uuuuuuuuuuzz
qq
xxyyxxyyxxyy
xxxxyyyy