Re: gpc-19990813+gcc-2.95.1/alphaev56-dec-osf4.0d => failure
5 Sep
1999
5 Sep
'99
2:22 a.m.
On Aug 31, 1999, Nick Burrett <nick@dsvr.net> wrote:
That's not covered in the original code. Since I've never heard of fwrite returning less than -1, I think it is as correct as the original code.
I'm suggesting that perhaps you stumbled across a proper bug. According to the man pages fwrite returns 0 on error and >0 on success.
Indeed. So you (we, if you will :-) don't even need ssize_t, size_t and `== 0' will do. -- Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org} oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org} ** I may forward mail about projects to mailing lists; please use them
9840
Age (days ago)
9840
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Oliva