mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
15 lines
346 B
C
15 lines
346 B
C
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
/* Open before loop, use inside loop, close after loop.
|
||
|
|
The back-edge should not prevent convergence.
|
||
|
|
Expected: NO state- findings. */
|
||
|
|
void loop_clean(void) {
|
||
|
|
FILE *f = fopen("data.txt", "r");
|
||
|
|
char buf[256];
|
||
|
|
int i;
|
||
|
|
for (i = 0; i < 10; i++) {
|
||
|
|
fread(buf, 1, sizeof(buf), f);
|
||
|
|
}
|
||
|
|
fclose(f);
|
||
|
|
}
|