Guest User

Untitled

a guest
May 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $ cat test.c
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. int main() {
  5. int i=0;
  6. for(;i<5000;i++){ printf("a\n"); }
  7. }
  8.  
  9. $ gcc -o test test.c
  10.  
  11. $ strace -e trace=write ./test 2>&1 > blah.txt
  12. write(1, "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na"..., 4096) = 4096
  13. write(1, "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na"..., 4096) = 4096
  14. write(1, "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na"..., 1808) = 1808
Add Comment
Please, Sign In to add comment