lukem fa11ebb133 apparently ansi c only required fread(3) to return 0 if size or nmembs == 0.
however, susv2 adds the same to fwrite(3), so add the explicit check.
document this for both fread & fwrite. move diagassert for buf!=NULL to after
the (size * nmembs) == 0 check.

this has the helpful side effect of preventing the _DIAGASSERT()ion in
fwrite() being triggered by lots of 3rdparty code that calls fwrite() with
buf=NULL count=0
2001-01-25 02:06:25 +00:00
..
1998-02-05 18:45:17 +00:00
1998-02-05 18:45:17 +00:00
2000-12-29 15:22:48 +00:00
2000-01-22 22:19:07 +00:00
2000-12-29 15:22:48 +00:00
1999-11-14 18:19:57 +00:00
1995-02-02 02:09:03 +00:00
2000-12-29 15:22:48 +00:00
2000-11-29 15:30:20 +00:00
2000-12-29 15:22:48 +00:00
2000-12-29 15:22:48 +00:00
1998-02-05 18:45:17 +00:00
1998-11-15 17:19:53 +00:00
1998-09-08 15:10:12 +00:00
1998-04-28 20:58:00 +00:00
2000-12-10 04:17:28 +00:00
1998-07-28 17:11:12 +00:00
1999-08-22 12:52:28 +00:00
2000-12-29 15:22:48 +00:00
1999-09-26 21:00:25 +00:00
2000-12-29 15:22:48 +00:00
2000-12-29 15:22:48 +00:00
1998-11-15 17:19:53 +00:00
1998-10-13 14:07:04 +00:00
1998-02-05 18:45:17 +00:00
2000-12-30 04:13:25 +00:00