mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-19 03:07:00 +00:00
1 line
462 B
Plaintext
1 line
462 B
Plaintext
|
/* Deviance Test 17.6.0.1: Ensure illegal parameters for fgetc are detected */
#include <stdio.h>
main ()
{
FILE *f1;
int i;
i = fgetc (f1); /* trying to read an unopened stream */
if (i != EOF)
goto Fail;
if (! (feof (f1)) ) /* ensure error and not just EOF */
goto Fail;
printf ("Passed Deviance Test 17.6.0.1\n");
return;
Fail:
printf ("Failed Deviance Test 17.6.0.1\n");
}
|