10 printf ("(write-normal) begin\n");
12 if (!create ("test.txt", sizeof sample - 1))
13 printf ("(write-normal) create() failed\n");
15 handle = open ("test.txt");
17 printf ("(write-normal) fail: open() returned %d\n", handle);
19 byte_cnt = write (handle, sample, sizeof sample - 1);
20 if (byte_cnt != sizeof sample - 1)
21 printf ("(write-normal) fail: write() returned %d instead of %zu\n",
22 byte_cnt, sizeof sample - 1);
24 printf ("(write-normal) end\n");