mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-16 17:25:24 +00:00
f7cad29eef
Squash from a494eed to 1974b83 by virusdefender
17 lines
237 B
C
17 lines
237 B
C
/*
|
|
* 不允许的系统调用 write file
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
FILE * fp;
|
|
|
|
fp = fopen ("/dev/null", "w");
|
|
fprintf(fp, "test");
|
|
fclose(fp);
|
|
printf("write file succeesed");
|
|
return 0;
|
|
} |