fork(1) download
  1. // compile with: gcc -W -Wall -Wextra -pedantic -std=c11 -O3 -s -march=native
  2.  
  3. #include <stdio.h>
  4. #include <memory.h>
  5.  
  6. char buf[100000000]; // large enough, and zeroed
  7.  
  8. int main()
  9. {
  10. char x[4096], * p = buf;
  11. for (size_t n; (n = fread(x, 1, sizeof x, stdin)) > 0; p += n)
  12. memcpy(p, x, n);
  13.  
  14. char s[128]; int n;
  15. p = buf;
  16. for (int b; sscanf(p, "%127s %d%n", s, &n, &b) == 2; p += b) { }
  17. }
  18.  
Success #stdin #stdout 0s 99968KB
stdin
Standard input is empty
stdout
Standard output is empty