9 const char filename[] = "/tmp/bug3.test";
11 f = fopen(filename, "w+");
12 for (i=0; i<9000; i++)
15 fwrite ("Where does this text go?", 1, 24, f);
19 for (i=0; i<9000; i++)
23 if ((j = getc(f)) != 'x')
27 printf ("Test FAILED!");
35 fread (buf + 1, 1, 23, f);
37 if (strcmp (buf, "Where does this text go?") != 0)
39 printf ("%s\nTest FAILED!\n", buf);
50 puts ("Test succeeded.");