Created
March 16, 2017 01:14
-
-
Save bencer/50d001f1b15fc7b7f5aaf5824dab6665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <fcntl.h> | |
int main() | |
{ | |
int j; | |
char buf[1]; | |
int fd; | |
fd = open("write.bin", O_CREAT | O_WRONLY); | |
for(j = 0; j < 5000000; j++) | |
{ | |
write(fd, buf, 1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment