Files
RedBear-OS/tests/stdio/fscanf.c
T
Red Bear OS 1b3e94a20d Red Bear OS relibc baseline
From release 0.1.0 pre-patched archive.
This includes all Red Bear modifications previously maintained
as patches in local/patches/relibc/.
2026-06-27 09:19:26 +03:00

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);
}
}