Skip to content

Instantly share code, notes, and snippets.

@bencer
Created March 16, 2017 01:14
Show Gist options
  • Save bencer/50d001f1b15fc7b7f5aaf5824dab6665 to your computer and use it in GitHub Desktop.
Save bencer/50d001f1b15fc7b7f5aaf5824dab6665 to your computer and use it in GitHub Desktop.
#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