1b3e94a20d
From release 0.1.0 pre-patched archive. This includes all Red Bear modifications previously maintained as patches in local/patches/relibc/.
13 lines
301 B
C
13 lines
301 B
C
//@ 1 2 3
|
|
//@ SS
|
|
#include <stdio.h>
|
|
int main() {
|
|
FILE *f = fopen("stdio/fscanf.c", "r");
|
|
int x, y, z;
|
|
fscanf(f, "//@ %d %d %d",&x , &y, &z);
|
|
printf("%d %d %d %ld\n", x, y, z, ftell(f));
|
|
while(-1 != fscanf(f, "%*[^\n]")) {
|
|
printf("%ld\n", ftell(f));
|
|
getc(f);
|
|
}
|
|
} |