4 #include <support/xstdio.h>
11 const char filename
[] = OBJPFX
"bug3.test";
13 f
= fopen(filename
, "w+");
14 for (i
=0; i
<9000; i
++)
17 fwrite ("Where does this text go?", 1, 24, f
);
21 for (i
=0; i
<9000; i
++)
25 if ((j
= getc(f
)) != 'x')
29 printf ("Test FAILED!");
37 xfread (buf
+ 1, 1, 23, f
);
39 if (strcmp (buf
, "Where does this text go?") != 0)
41 printf ("%s\nTest FAILED!\n", buf
);
52 puts ("Test succeeded.");