fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main (void) {
  4.  
  5. long nc=0;
  6. while (getchar() != EOF)
  7. ++nc;
  8.  
  9. printf("%ld\n", nc);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2252KB
stdin
qwerty
asdfgh
stdout
13