33 int main(
int argc,
char *argv[])
38 unsigned long long total_size;
39 unsigned long long bytes = 0;
43 printf(
"Usage: %s output-file-name\n", argv[0]);
46 fd = fopen(argv[1],
"w");
48 printf(
"fopen() Error !!!\n");
51 printf(
"File \"%s\" opened for writing\n", argv[1]);
57 bytes = fwrite(&
ch,
sizeof(
char), 1,
fd);
68 assert(bytes ==
sizeof(
char));
71 assert(ftell(
fd) == total_size);
73 total_size_MB = (
float)total_size / 1024 / 1024;
74 printf(
"File \"%s\" closed after writing %llu bytes (%f MB)\n",
75 argv[1], total_size, total_size_MB);
int main(int argc, char *argv[])
unsigned long long NUM_ITERATIONS
unsigned long long NUM_ALPHABETS
struct m0t1fs_filedata * fd
unsigned long long NUM_ALPHABET_REPEATITIONS