mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 23:29:27 +00:00
1 line
490 B
C++
Executable File
1 line
490 B
C++
Executable File
/* Deviance Test 17.2.0.1: Ensure illegal parameters supplied to fopen */
|
|
/* are detected */
|
|
|
|
#include <stdio.h>
|
|
|
|
main ()
|
|
{
|
|
FILE *f1;
|
|
|
|
f1 = fopen ("123badfile", "r"); /* try to open file with invalid */
|
|
if (f1 != NULL) /* filename */
|
|
goto Fail;
|
|
|
|
printf ("Passed Deviance Test 17.2.0.1\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Deviance Test 17.2.0.1\n");
|
|
}
|