6 "Amazing Electronic Fact: If you scuffed your feet long enough without\n"
7 "touching anything, you would build up so many electrons that your\n"
8 "finger would explode! But this is nothing to worry about unless you\n"
12 char actual[sizeof expected];
18 printf ("(read-normal) begin\n");
20 handle = open ("sample.txt");
22 printf ("(read-normal) fail: open() returned %d\n", handle);
24 byte_cnt = read (handle, actual, sizeof actual - 1);
25 if (byte_cnt != sizeof actual - 1)
26 printf ("(read-normal) fail: read() returned %d instead of %d\n",
27 byte_cnt, sizeof actual - 1);
28 else if (strcmp (expected, actual))
29 printf ("(read-normal) fail: expected text differs from actual:\n%s",
32 printf ("(read-normal) end\n");