1 /* Try a 0-byte write, which should return 0 without writing
6 #include "tests/main.h"
14 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
17 byte_cnt = write (handle, &buf, 0);
19 fail("write() returned %d instead of 0", byte_cnt);