Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat test.c
- #include <stdlib.h>
- #include <stdio.h>
- int main() {
- int i=0;
- for(;i<5000;i++){ printf("a\n"); }
- }
- $ gcc -o test test.c
- $ strace -e trace=write ./test 2>&1 > blah.txt
- write(1, "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na"..., 4096) = 4096
- write(1, "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na"..., 4096) = 4096
- 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