1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* * Rule: WIN03-C * Source: wiki * Status: PASS - Should NOT trigger WIN03-C violation */ #include <stdio.h> #include <stdlib.h> int main(void) { FILE *fp = fopen("SomeFile.txt", "rwN"); if (!fp) { return -1; } system("SomeProcess.exe"); fclose(fp); return 0; }