mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-04 11:21:42 +00:00
15 lines
329 B
C
15 lines
329 B
C
#include <stdio.h>
|
|
int main() {
|
|
FILE *f = fopen("/tmp/fsize_test", "w");
|
|
if(f == NULL) {
|
|
return 1;
|
|
}
|
|
int i;
|
|
for(i = 0;i < 10000; i++) {
|
|
if (fprintf(f, "%s", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA") <= 0) {
|
|
return 2;
|
|
}
|
|
}
|
|
fclose(f);
|
|
return 0;
|
|
} |