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