mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
13 lines
194 B
C
13 lines
194 B
C
#include <stdio.h>
|
|||
|
|||
void helper(FILE *f) {
|
|||
char buf[1024];
|
|||
fread(buf, 1, 1024, f);
|
|||
}
|
|||
|
|||
void caller(void) {
|
|||
FILE *f = fopen("data.txt", "r");
|
|||
helper(f);
|
|||
/* f never closed */
|
|||
}
|