Skip to content

Instantly share code, notes, and snippets.

@makotom
Created June 3, 2014 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makotom/83c7cc6f5064c649e005 to your computer and use it in GitHub Desktop.
Save makotom/83c7cc6f5064c649e005 to your computer and use it in GitHub Desktop.
/*
* Do fclose(fd).
* Filenames should not be hidden.
That's all. Tested on Win2012R2 + 4 kB NTFS + VS2013.
*/
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void putputput(int iter) {
int i = 0;
FILE * fd = fopen("tmp", "w");
for (i = 0; i < iter; i += 1) {
fprintf(fd, " ");
}
}
int main(void) {
putputput(4098);
putputput(1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment